Learn R Programming

podcleaner (version 0.1.2)

utils_clean_occupations: Clean entries occupation record

Description

Clean "occupation" column of provided directory dataframe.

Usage

utils_clean_occupations(directory)

Arguments

directory

A directory dataframe.

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 mercht", "bkr"),
    address.number = c(" -; 1820", ",,12"),
    address.body = c(
      "London st. ; house, Mary hill.*",
      "&;Dixon st.; residence, Craigrownie, Cove.$"
    ),
    stringsAsFactors = FALSE
  )
  utils_clean_occupations(directory)
# }

Run the code above in your browser using DataLab