100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary Detailed guide to setting up a new R project (BIO-4008Y)

Rating
-
Sold
1
Pages
3
Uploaded on
14-07-2023
Written in
2022/2023

This is a clear, step by step guide to setting up a new R project on R-Studio / Posit cloud. This includes editing the resources to ensure you do not run out of the limited time your account allows each month and a brief explanation as to what parts of the project are and why you need them to help ensure code annotations are informed, which is needed for your final portfolio. I have explained how to change your data to a .csv file, where you will need to write your code, and how to install packages and upload data onto R while maintaining a neat workspace.

Show more Read less









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
July 14, 2023
Number of pages
3
Written in
2022/2023
Type
Summary

Content preview

Skills for Biologists: Data Science
Introduction to R- Studio / Posit Cloud

When you first go onto the website, have created an account, and logged in. You will see an
option to start a new project – do this and select “new R project”. It will open a page like this:




In the top right-hand corner, there is a setting logo– you’ll need to select this, go to the
‘Resources’ option and lower the RAM and the CPU both to 0.5 (the lowest it will possibly
go), then click apply changes.

Next, you’re going to want to name your project something recognisable and relevant to the
data you will be inputting in. You can do this either in the same settings you were just in, or
by simply clicking where it will say ‘Untitled Project’ in the top left corner.

You’re now ready to open a new R script – this sounds confusing as that’s what you may
think you have just done – however, this will open a new ‘window’ on your screen where
you’ll be inputting your code and where you’ll be saving your work. To do this, you will need
to go to ‘file’, ‘new file’, and then new R script. Alternatively, you can simple to
“Ctrl+Alt+Shift+N” and this will open up one for you. You should now have four windows
open on your screen, I’ve labelled these 1-4 for easier following.

, Panel 1 is where you will input all of your code, this will make finding mistakes A LOT easier
to find as well as ensuring that your work stays neat and presentable.
Panel 2 is where the code output will show. You will also notice that any errors will flag up in
red in this area along with telling you what line the error is in.
Panel 3 is where all of your data, graphs, etc will stay. This can be emptied but you have to
ensure that you re-run any installed packages (explained later) if and when you do empty
this.
Panel 4 has multiple tabs above it. You’re only really interested in 3 at this moment in time,
these are files, plots, and help.


Your next step in setting up your page for your data is focused in your panel 4. It will already
be on the files tab, you will need to stay on this tab, and create 3 new folders, named
‘scripts’, ‘figures’, and ‘data’. It is important to note that R is very case sensitive, so it is
recommended that all of your work is written in only lower case.


Your data should be given to you in the form of an excel spreadsheet, open this up in excel
and make sure you save it to your computer under a sensible name (remember R doesn’t
like spaces, so use underscores (_) in place of spaces) and as a .csv file. To do this, go to
save as, go to the drop-down menu underneath where you renamed your file, and select the
option that says ‘CSV UTF-8 (Comma delimited) (*.csv)’.


To upload this data onto your R project, go to your files tab in panel 4, click on your ‘data’
folder, and you want to select the tab that says ‘upload’, this should be the 3rd tab in this
folder. You then need to select ‘choose file’ and then find and upload the .csv file you just
saved. Then click okay. We’ll come back to this in a second.
£3.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
kayleighsheppard

Get to know the seller

Seller avatar
kayleighsheppard University of East Anglia (East of England)
View profile
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
2 year
Number of followers
1
Documents
5
Last sold
2 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions