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 investigating your data in your R project (BIO-4008Y)

Rating
-
Sold
-
Pages
4
Uploaded on
17-07-2023
Written 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.

Show more Read less
Institution
Course








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

Written for

Institution
Study
Unknown
Course

Document information

Uploaded on
July 17, 2023
Number of pages
4
Written in
2022/2023
Type
Summary

Subjects

Content preview

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”)
$5.49
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)
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 notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

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

Student with book image

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

Alisha Student

Frequently asked questions