Rstudio Flashcards
1
Q
abs()
A
computes the absolute value of a number
2
Q
ls()
A
lists all objects in the environment
3
Q
rm()
A
removes objects from the environment
4
Q
getwd()
A
get the working directory
5
Q
round(3.2464, digits=3)
A
rounds the number to 3 digits
6
Q
c()
A
combines values and characters together
7
Q
length()
A
gives the total number of elements in a list
8
Q
max()
A
gives largest element
9
Q
mean()
A
computes mean from a list of numbers
10
Q
range()
A
computes range
11
Q
sum()
A
computes sum
12
Q
names(classify)[classify==max(classify)]
A
computes the mode
13
Q
median()
A
computes the median