functions for lab 1 Flashcards

1
Q

Read csv file

A

ClassData

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

allow direct access to variables by their names

A

attach(fileVarName)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Counter # of male/female students

A

table(Gender)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Table of counts oh phone brand by gender

A

table(Gender,PhoneBrand)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Create a histogram

A

hist(headerName)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Create a boxplot

A

boxplot(headerName)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Create a side by side boxplot

A

boxplot(varName ~ varName)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Crease a 5 num summary

A

sumary(varName)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Separate male and female data?

A

HaircutF

How well did you know this?
1
Not at all
2
3
4
5
Perfectly