100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Samenvatting

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

Beoordeling
-
Verkocht
1
Pagina's
3
Geüpload op
14-07-2023
Geschreven 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.

Meer zien Lees minder
Instelling
Vak









Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
Studie
Onbekend
Vak

Documentinformatie

Geüpload op
14 juli 2023
Aantal pagina's
3
Geschreven in
2022/2023
Type
Samenvatting

Onderwerpen

Voorbeeld van de inhoud

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.
€4,68
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
kayleighsheppard

Maak kennis met de verkoper

Seller avatar
kayleighsheppard University of East Anglia (East of England)
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
1
Lid sinds
2 jaar
Aantal volgers
1
Documenten
5
Laatst verkocht
2 jaar geleden

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen