Learn R Programming

podcleaner (version 0.1.2)

utils_clean_ends: Clean entry ends

Description

Clean entry ends for the specified columns in the directory dataframe provided

Usage

utils_clean_ends(directory, ...)

Arguments

directory

A directory dataframe.

...

Columns to clean provided as expressions.

Value

A dataframe.

Examples

Run this code
# NOT RUN {
  directory <- data.frame(
    page = c("71", "71", "71"),
    surname = c("ABOT", "ABRCROMBIE", "BLAI"), forename = c("Wm.", "Alex", "Jn Huh"),
    occupation = c("Wine and spirit merchant", "Baker", "Victualer"),
    address.trade.number = c(" -; 1820", "", "280"),
    address.trade.body = c("London st. ; house, Mary hill.*", "", "High stret"),
    stringsAsFactors = FALSE
  )
  utils_clean_ends(directory, address.trade.number, address.trade.body)
# }

Run the code above in your browser using DataLab