Description Usage Arguments Value Examples
Takes a raw directory dataframe (just loaded), adds a column with the
corresponding directory name, replaces all NA
entries with an empty
string, clear all entries of unwanted blank characters, format page number
as integer, returns the output with the directory name column in first
position.
1 |
df |
A raw directory dataframe as output by
|
name |
Directory name provided as a character string. |
A dataframe.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
directory <- data.frame(
page = c("71", "71"),
surname = c("ABOT ", " ABRCROMBIE"), forename = c("Wm.", "Alex"),
occupation = c("wine and spirit mercht", " bkr"),
addresses = c(
"depot -; 1820 London st. ; house, Mary hill.*",
"workshop,,12 &;Dixon st.; residence, Craigrownie, Cove.$ "
),
stringsAsFactors = FALSE
)
utils_format_directory_raw(directory, "1861-1862")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.