functions for lab 1 Flashcards
1
Q
Read csv file
A
ClassData
2
Q
allow direct access to variables by their names
A
attach(fileVarName)
3
Q
Counter # of male/female students
A
table(Gender)
4
Q
Table of counts oh phone brand by gender
A
table(Gender,PhoneBrand)
5
Q
Create a histogram
A
hist(headerName)
6
Q
Create a boxplot
A
boxplot(headerName)
7
Q
Create a side by side boxplot
A
boxplot(varName ~ varName)
8
Q
Crease a 5 num summary
A
sumary(varName)
9
Q
Separate male and female data?
A
HaircutF