extractCleanDate: Format patent dates.

Description Usage Arguments Value Examples

View source: R/cleanPatentData.R

Description

Create a clean year, month, day date.

Reading data in and aout of R may cause date mistakes, using a simple set function will ensure data types are the right format and class type. This data format is cleaned up to be in the format yyyy-mm-dd with no hours, minutes, seconds, or time zone attached.

Usage

1
extractCleanDate(dateVector, orders = "ymd")

Arguments

dateVector

A vector of character dates.

orders

The orders the dates appear in. Sumobrain is "ymd" and Lens.org and Google data are "mdy". Hardcoded values include googleDateOrder,lensDateOrder, and sumobrainDateOrder.

Value

A date vector of year, month, day dates.

Examples

1
acars$pubDate <- extractCleanDate(dateVector = acars$pubDate, orders = "ymd")

kamilien1/patentr documentation built on May 20, 2019, 7:19 a.m.