Data Science Quiz 2

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

fct_relevel(data, c("level 1", "level 2", "level 3"))

Manually reorders levels

2
New cards

fct_recode(data, "1" = "level 1", "2" = "level 2", "3" = "level 3")

Manually changes level labels

3
New cards

fct_reorder(data, variable)

Reorders levels according to values of another variable

4
New cards

str_to_lower(column)

Converts all letters to lowercase

5
New cards

str_length(column)

Records the number of characters

6
New cards

str_detect(column, "pattern")

Returns TRUE if it contains the given pattern and FALSE otherwise

7
New cards

str_replace(column, "pattern", "replacement")

Finds the first instance that matches the given pattern and replaces it

8
New cards

str_replace_all(column, "pattern", "replacement")

Finds all instances that match the given pattern and replaces them

9
New cards

str_sub(column, start #, end #)

Only keeps a subset of characters, from the start number to the end number

10
New cards

separate(column, c("Column 1", "Column 2"), sep = " "))

Splits data into separate columns