r studio Flashcards
Script
here you ca write your commands
console
R will carry out mathematics, functions- computations in the console. You can
directly type in commands in the console, or you can
select the commands you want to run in the script
install.packages(“tidyverse”)
install.packages(“tidyverse”)
brackets mean
function
Load the tidyverse package using, we need to install once, but then we need to load it
library(“tidyverse”)
check which directory you are in
getwd()
when you want to view
View()
when you want to connect
pipe operator, >%>
connect stars wand view
starswars>%>View()
what do you do when you are interested in one variable
dataset>%>select()>%:>View()
if you want to look at the mean, average data in console
dataset>%>summary()
when you want to install a data set and create and object
titanic<-read.csv (“titanic.csv”, sep=”,”)
when we put the arrow what it means
we create a new object
what do we tell after the arrow
after the arrow we tell how to create the object
how do you import a data set
read.csv