Learn R Programming

dataMaid (version 1.3.2)

presidentData: Semi-artificial data about the US presidents

Description

A dataset with information about the first 45 US presidents as well as a 46th person, who is not a US president. The dataset was constructed to show the capabilities of dataMaid and therefore, it has been constructed to include errors and miscodings. Each observation in the dataset corresponds to a person. The dataset uses the non-standard class Name which is simply an attribute that has been added to two variables in order to show how dataMaid handles non-supported classes.

Usage

presidentData

Arguments

Format

A data frame with 46 rows and 11 variables.

lastName

A Name type variable containing the last name of the president.

firstName

A Name type variable containing the first name of the president.

orderOfPresidency

A factor variable indicating the order of the presidents (with George Washington as number 1 and Donald Trump as number 45).

birthday

A Date variable with the birthday of the president

stateOfBirth

A character variable with the state in which the president was born.

assassinationAttempt

A numeric variable indicating whether there was an assassination attempt (1) or not (0) on the president.

sex

A factor variable with the sex of the president.

ethnicity

A factor variable with the ethnicity of the president.

presidencyYears

A numeric variable with the duration of the presidency, in years.

ageAtInauguration

A character variable with the age at inauguration.

favoriteNumber

A complex type variable with a fictional favorite number for each president.

References

Petersen AH, Ekstr<U+00F8>m CT (2019). <U+201C>dataMaid: Your Assistant for Documenting Supervised Data Quality Screening in R.<U+201D> _Journal of Statistical Software_, *90*(6), 1-38. doi: 10.18637/jss.v090.i06 ( https://doi.org/10.18637/jss.v090.i06).

Examples

Run this code
# NOT RUN {
data(presidentData)

# }

Run the code above in your browser using DataLab