clean: clean

Description Usage Arguments Value See Also

View source: R/clean_column.R

Description

Clean and preprocess a single text column, remove punctuation and standardise

Usage

1
clean(data, column, num = FALSE, null_response = TRUE)

Arguments

data

dataframe or tibble with a row per survey response

column

name of a character column in the data frame to be cleaned

num

logical indicating whether numbers should be removed as part of cleaning process

null_response

logical indicating whether to remove non-answers (e.g. 'no', 'none', 'na' etc.)

Value

Original dataframe with text column cleaned and standardised ready for analysing

See Also

Other preprocess functions: clean_all, clean_at


chrisbrownlie/surveyr documentation built on Dec. 1, 2019, 12:34 a.m.