Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Samenvatting

Summary Detailed guide to investigating your data in your R project (BIO-4008Y)

Beoordeling
-
Verkocht
-
Pagina's
4
Geüpload op
17-07-2023
Geschreven in
2022/2023

This is a clear, step by step guide to investigating your data in your R project on R-Studio / Posit cloud. This includes the code you need to write, as well as explanations as to what different parts of the code means to help ensure code annotations are informed, which is needed for your final portfolio. I have explained how to install packages, tell R to read your data files, what parts of your data you need to check, and have included how to input the lines of code needed and what the outcomes mean.

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

Skills for Biologists: Data Science
Investigating your data in R- Studio / Posit Cloud

You should have a R project set up and your data uploaded at this point 😊
For the purposes of explaining, there are 3 packages I’ll explain how to install and
run, and like before the data set I will be using to explain is nicknamed bird.
Don’t forget that R doesn’t like spaces and is case sensitive!


Now you have your data uploaded into your files folder, we are going to go back to
your first panel and input 6 lines of code that are going to install and run 3 packages.
You will input and run the following:
install.packages(“ggplot2”)
Once you run this, your panel 2 should show lines of red text – this is completely
fine, it is installing the package. You then need to input:
library(ggplot2)
Running this will just show you the same text repeated in your second panel, but it
has enabled R to load the package, meaning you are now able to use it.
You should now repeat this with the packages “tidyverse” and “patchwork”, this is
done in the same way as the ggplot2 package. Once you’ve installed and run these
two packages, you should have six lines of code that look like this:
install.packages(“ggplot2”)
library(ggplot2)
install.packages(“tidyverse”)
library(tidyverse)
install.packages(“patchwork”)
library(patchwork)


Now, unless you have already done so, you need to tell R to read your data. To do
this, I always make sure I have files open in my panel 4 to make sure I do not
misspell the name of my uploaded document. I also suggest you give your data set a
one-word nickname that is relevant to the data. To explain it here, I will be using data
named bird_feeder.csv and will nickname it bird.
To tell R to read your data you need to input the following code (obviously changing
where it says bird and bird_feeder to the relevant things):
bird<-read.csv(“data/bird_feeder.csv”)

Geschreven voor

Instelling
Studie
Onbekend
Vak

Documentinformatie

Geüpload op
17 juli 2023
Aantal pagina's
4
Geschreven in
2022/2023
Type
SAMENVATTING

Onderwerpen

$6.24
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kan je een ander document kiezen. Je kan het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

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

Populaire documenten

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 Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

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

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen