R Lectures Week1 Flashcards
Installin a package
install.packages(“name of package”)
show only the top/bottom of data set
head(name of data)
tail(name of data)
make a series of numbers 1 - 100
print(1:100)
: gives you numbers in a sequences
find out what a function does
? function ( ?:) brings up info about :
print(“He said, “I really want to go to the movies!””)
only the he said is being read as part of the text. how to fix?
\ gives instructions that the “ is just a word
print(“He said, "I really want to go to the movies!"”)
print(“He said, "I really want to go to the movies!"”)
how to see in the console as how it reads as text
cat(“He said, "I really want to go to the movies!"”)
cat: Outputs the objects, concatenating the representations. cat performs much less conversion than print
ask for an input to store
show that input
vector