parse_elg_field: Generic parser for fields contained in araw charactor tibble

Description Usage Arguments Examples

Description

Data read in to character tibble by read_csv(...,col_types = cols(.default=col_character()))). Takes parsing function as input so can differentiate between different column types. Takes tibble and returns vector

Usage

1
parse_elg_field(df, field, regex, parse_fun, ...)

Arguments

df

character tibble

field

name of field to parse (passed to warning and message functions for readability).

regex

regex for finding the appropriate field. Can be vector of searches with earlier values prioritized.

parse_fun

the parsing function to use in creating the new vector

...

additional parameters passed to parse_fun (i.e. format = "" for parse_date)

Examples

1

benharden27/sea documentation built on May 14, 2019, 4:18 p.m.