Data Analysis Super Big Flashcard Set

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/96

flashcard set

Earn XP

Description and Tags

an exhaustive list of near everything we've learned this semester (so far)

Last updated 7:54 PM on 10/7/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

97 Terms

1
New cards

< -

stores value in object

2
New cards

=

assigns values or specifies function arguments

3
New cards

+

addition

4
New cards

-

subtraction

5
New cards

*

multiplication or interaction effects in ANOVA

6
New cards

/

division

7
New cards

^

raises number to a power

8
New cards

%%

returns remainder

9
New cards

==

tests equality

10
New cards

!=

not equal to

11
New cards

>

greater than

12
New cards

<

less than

13
New cards

>=

greater than or equal to

14
New cards

<=

less than or equal to

15
New cards

!

reverses logical value (true becomes false) ; means NOT ; df [ !(df$a >3), ] keep rows where a is NOT greater than 3

16
New cards

&

logical and ; both conditions must be true

17
New cards

|

logical or ; one condition must be true

18
New cards

:

creates a sequence

19
New cards

( )

function call or order of operations

20
New cards


[ ]

extracts element by position

21
New cards

[ [ ] ]

extracts specific component from a list ; returns the actual element itself

22
New cards

$

accesses columns or list

23
New cards

{ }

group code together

24
New cards

~

formula notation ; aov(response variable ~ factor)

25
New cards

%>%

passes output one step to the next

26
New cards

?

help

27
New cards

c( )

combines values into a vector ; vector contains elements that are same type (numeric, character, etc. )

28
New cards

mean( )

calculates mean

29
New cards

sum( )

adds values together

30
New cards

class( )

shows the object type (numeric, character, data.frame, etc.)

31
New cards

str( )

displays object structure

32
New cards

is.integer( )

checks if values or integer

33
New cards

is.character( )

checks if values are character strings

34
New cards

is.na( )

check for missing values

35
New cards

as.numeric( )

converts data to numeric

36
New cards

as.logical( )

converts data to TRUE/FALSE

37
New cards

as.factor( )

converts data to factor ; ANOVA

38
New cards

factor( )

creates categorical variables

39
New cards

seq( )

creates sequences

40
New cards

rep( )

repeats values

41
New cards

sqrt( )

calculates square root

42
New cards

log( )

calculates natural logs

43
New cards

data.frame( )

creates a data frame ; combine vectors into a structured table format ; like a spreadsheet

44
New cards

list( )

creates a list

45
New cards

matrix( )

creates a matrix

46
New cards

table( )

creates frequency table (?)

47
New cards

sort( )

sorts values smallest to largest

48
New cards

order( )

returns positions in order ; x ← c(0, 20, 10, 15) output is 1 3 4 2 since smallest number is at position 1, next smallest is 3, then 4, then 2 (why would you ever do it this way)

49
New cards

rank( )

assigns ranks to values ; x← c(3, 1, 4, 15, 92) output is 2 1 3 4 5

50
New cards

rowSums( )

adds values across rows

51
New cards

colMeans( )

calculates means of columns

52
New cards

subset( )

filters rows using conditions

53
New cards

aggregate( )

summarizes data by groups

54
New cards

tapply( )

applies a function to groups

55
New cards

group_by( )

creates groups for summaries

56
New cards

summarise( )

produces summary statistics

57
New cards

levels( )

displays factor levels

58
New cards

sd( )

calculates standard deviation

59
New cards

var( )

calculates variance

60
New cards

qt( )

returns t critical values

61
New cards

t.test( )

performs a t-test

62
New cards

aov( )

performs ANOVA

63
New cards

summary( )

shows statistical results

64
New cards

TukeyHSD( )

post-hoc after ANOVA

65
New cards

residuals( )

returns model residuals

66
New cards

shapiro.test( )

tests normality

67
New cards

sample( )

generates a random sample

68
New cards

rnorm( )

generates random normal values

69
New cards

set.seed( )

same sequence of random numbers is produced each time the code is run

70
New cards

plot( )

creates base plots in R

71
New cards

barplot( )

creates bar chart

72
New cards

boxplot( )

creates a boxplot

73
New cards

hist( )

creates a historgram

74
New cards

ggplot( )

starts a ggplot graph

75
New cards

aes( )

axes

76
New cards

geom_point( )

creates scatterplot points

77
New cards

geom_line( )

creates line graph

78
New cards

geom_bar( )

creates bar plot

79
New cards

geom_col( )

creates bars from supplies values

80
New cards

geom_boxplot( )

creates boxplot

81
New cards

geom_historgram( )

creates histograms

82
New cards

geom_smooth( )

adds trend lines

83
New cards

geom_errorbar( )

adds error bars

84
New cards

labs( )

adds titles and labels

85
New cards

theme( )

customize plot appearance

86
New cards

theme_classic( )

applies theme to plot

87
New cards

scale_y_continuous

modifies the y-axis scale

88
New cards

sec_axis( )

creates secondary axis

89
New cards

ggsave( )

saves ggplot as image

90
New cards

manova( )

performs MANOVA ; multiple response variables

91
New cards

cbind( )

combines objects by columns

92
New cards

rbind( )

combines objects by rows

93
New cards

summary.aov( )

produces ANOVA summaries ; or use summary(model1) or whatever you names the ANOVA

94
New cards

lm( )

fits linear regression model

95
New cards

paired = TRUE

means R treats each value in group1 as matched with the value in the same position in group2

96
New cards

residuals

observed - predicted ; tells us how far each observation is from what the model predicted

97
New cards

mtcars[mtcars$mpg > 25, ]

the comma means only keep rows where mpg > 25 but keep all columns