Learn R Programming

podcleaner (version 0.1.2)

utils_clear_irrelevants: Mutate operation(s) in directory dataframe column(s)

Description

Attempts to get rid of irrelevant information in all columns of the provided directory dataframe provided

Usage

utils_clear_irrelevants(directory, ...)

Arguments

directory

A directory dataframe.

...

Further arguments to be passed down to utils_clear_content.

Value

A dataframe.

Examples

Run this code
# NOT RUN {
  directory <- data.frame(
    page = c("71", "71"),
    surname = c("ABOT", "ABRCROMBIE"), forename = c("Wm.", "Alex"),
    occupation = c("Wine and spirit merchant <U+2014> See Advertisement in Appendix.", "Baker"),
    address.trade.number = c("18, 20", "12"),
    address.house.number = c("136", "265"),
    address.trade.body = c("London Street.", "Dixon Street."),
    address.house.body = c("Queen Street.", "Argyle Street"),
    stringsAsFactors = FALSE
  )
  utils_clear_irrelevants(directory, globals_regex_irrelevants, ignore_case = TRUE)
# }

Run the code above in your browser using DataLab