Description Usage Arguments Value
Converts date variables in a dataframe to integers Integers represent time in days from the supplied origin Converts specified numeric values to integer This function is useful for keeping file sizes down and is used by the to_stata command to save to Stata files.
1 2 3 |
dat |
a dataframe |
origin |
ISO string representation of the dat of origin. default is UNIX start date |
format |
character: format of the date string. Default is ISO standard |
date_fields |
character vector of column names representing dates |
integer_fields |
character vector of column names that should be integers |
dataframe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.