rlms_cleanup: Clean rlms data

Description Usage Arguments Details Value

Description

Clean rlms data and all meta information

Usage

1
2
3
rlms_cleanup(df, suppress = TRUE, empty2na = TRUE, nan2na = TRUE,
  nine2na = TRUE, yesno = TRUE, apostrophe = TRUE, remove_empty = TRUE,
  colnames_tolower = TRUE, verbose = FALSE)

Arguments

df

data.frame read by haven::read.spss

suppress

logical, if true the default message is suppressed

empty2na

convert empty character values to NA

nan2na

convert NaN to NA

nine2na

convert 99999990+ to NA for numeric variables

yesno

convert yes/no answers to lowercase yes/no without apostrophes

apostrophe

trim apostrophes, TRUE by default

remove_empty

remove empty labels, TRUE by default

colnames_tolower

a logical value, indicating whether variable names should be converted to lowercase.

verbose

add some debugging output TRUE by default.

Details

Clean rlms data and all the meta information. Destroy useless attributes.

Value

dataframe


bdemeshev/rlms documentation built on May 12, 2019, 3:41 a.m.