linelist_example: show the path to a linelist example file

View source: R/linelist_example.R

linelist_exampleR Documentation

show the path to a linelist example file

Description

show the path to a linelist example file

Usage

linelist_example(name = NULL)

Arguments

name

the name of a linelist example file

Value

a path to a linelist example file

Author(s)

Zhian N. Kamvar

Examples

linelist_example() # list all of the example files

# read in example spelling dictionary
sd <- linelist_example("spelling-dictionary.csv")
read.csv(sd, stringsAsFactors = FALSE)

# read in example coded data
coded_data <- linelist_example("coded-data.csv")
coded_data <- read.csv(coded_data, stringsAsFactors = FALSE)
str(coded_data)
coded_data$date <- as.Date(coded_data$date)

reconhub/linelist documentation built on Jan. 1, 2023, 9:39 p.m.