date_parser_fn: Parse numeric date distances into numerics.

Description Usage Arguments Details Value Examples

View source: R/date_parser.r

Description

For example, c("8 days", "100 days", "") will become c(8, 100, NA)

Usage

1

Arguments

column

an atomic vector. The column to process.

Details

This is a column transformation and will be wrapped in column_transformation.

Value

numeric. Number of years

Examples

1
2
3
4
dd <- data.frame(cbind(c("", "8 days", "20 days")), stringsAsFactors = FALSE)
date_parser(dd, 1)
print(dd[[1]])
# [1] 0 8 20

robertzk/syberiaMungebits documentation built on May 25, 2017, 6:40 a.m.