Learn R Programming

pawacc (version 1.1)

infoDate: Perform date formatting and checking

Description

This function returns accelerometer date in 'year-month-day' format and a code.

Usage

infoDate(x, id)

Arguments

x
character vector with day, month, and year returned by accelerometer.
id
file identifier.

Value

  • dateDate in 'y/m/d' format.
  • date_codeOne of the following: 0, original date in 'y/m/d' format; 1, original date in 'y/d/m'; 2, date format not recognised.

References

Geraci M, Rich C, Sera F, Cortina-Borja M, Griffiths LJ, and Dezateux C (2012). Technical report on accelerometry data processing in the Millennium Cohort Study. London, UK: University College London. Available at http://discovery.ucl.ac.uk/1361699

See Also

gt1m.accfile