R FUNCTIONS Flashcards

1
Q

creates a subset row based on specific criteria

A

filter()

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

removes duplicates in the specific columns

A

distinct()

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

selects specific rows by position

A

slice()

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

pipes the data set with following commands

A

%>%

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

reduces a data frame to whatever observations are grouped

A

summarize()

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

counts the number of rows in a group based on the variables selected

A

count()

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

extracts a single column from a data set

A

select()

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

used in summarize(), sets missing values as β€œNA”

A

is.na()

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

orders values from low to high within a given variable

A

arrange()

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

within the arrange() function; orders values from high to low

A

desc()

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

creates subsets of the data frame based on the given variable(s), and combines them at the end

A

group_by()

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

create a new column based on a command

A

mutate()

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

rename a column

A

rename()

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

adds total amount of True statements, used with summarize()

A

sum()

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

pastes two tables side by side as they are with no changes

A

bind_cols()

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

combines a column from y with the matching values with x

A

left_join()

17
Q

combines all different data from y to x

A

full_join()

18
Q

sets the data base for a visual representation

19
Q

assigns the x and y axes, colors, etc

20
Q

creates a scatter plot of the data

A

geom_point()

21
Q

creates a curve to follow along the mean of a scatter plot

A

geom_smooth()

22
Q

creates a bar chart from data for the x AND y axes

A

geom_col()

23
Q

creates a boxplot from the min, lower, median, upper, and max

A

geom_boxplot()

24
Q

creates a histogram from the data set as the x variable

A

geom_histogram()

25
Q

provides a bar graph from the 1 variable set as the x axis

A

geom_bar()

26
Q

sets the input as a date format

27
Q

rounds the date down to nearest unit

A

floor_date()

28
Q

rounds the data up to the nearest unit

A

ceiling_date()