11: Cleaning Data in R

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

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:25 AM on 8/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards

FRONT

BACK

2
New cards

What package allows you to throw errors if a variable is checked, and found to be an undesired data type?

assertive

3
New cards

What tidyverse package allows you to better manipulate strings? What function in this package allows you to remove parts of strings that match a specified pattern?

stringr

str_remove()

4
New cards

How do you covert a factor to a numeric?

as.numeric(as.character(factorName))

5
New cards

What are the types of qualitative and quantitative data? Define them

Nominal: Red, blue, Yellow

Ordinal: First, Second, Third

Discrete: 1, 2, 3, 4

Continuous: 1.0, 2.0, 3.0, 4.0

6
New cards

What data type should a variable represented by discrete numbers be?

Factor

7
New cards

In the data checking package, what function throws an error if any value in a series falls outside of a range?

assert_all_are_in_closed_range()

8
New cards

What function replaces data in dplyr?

replace()

9
New cards

In the data checking package, what function checks that all dates in a set are from the past?

assert_all_are_in_past()

10
New cards

What function gives a vector of booleans, with each TRUE value representing a duplicated row?

duplicated()

11
New cards

What does the sum of a boolean vector return?

It returns the number of true values in the vector

12
New cards

What dplyr function returns a dataframe without duplicates?

distinct()

13
New cards

FIRST PASS

FIRST PASS

14
New cards

SECOND PASS

SECOND PASS