View source: R/handle_ru_datetimes.R
handle_ru_datetimes | R Documentation |
handle_ru_datetimes(
data,
form_schema,
orders = get_default_orders(),
tz = get_default_tz(),
verbose = get_ru_verbose()
)
data |
Submissions rectangled into a tibble. E.g. the output of ruODK::odata_submission_get(parse = FALSE) %>% ruODK::odata_submission_rectangle() |
form_schema |
The |
orders |
(vector of character) Orders of datetime elements for lubridate. Default:
|
tz |
A timezone to convert dates and times to. Read |
verbose |
Whether to display debug messages or not. Read |
For a given tibble of submissions, parse all columns which are marked in the form schema as type "date" or "dateTime" using a set of lubridate orders and a given timezone.
The submissions tibble with all date/dateTime columns mutated as lubridate datetimes.
Other utilities:
attachment_get()
,
attachment_link()
,
attachment_url()
,
drop_null_coords()
,
form_schema_parse()
,
get_one_attachment()
,
get_one_submission()
,
get_one_submission_att_list()
,
get_one_submission_audit()
,
handle_ru_attachments()
,
handle_ru_geopoints()
,
handle_ru_geoshapes()
,
handle_ru_geotraces()
,
isodt_to_local()
,
odata_submission_rectangle()
,
predict_ruodk_name()
,
prepend_uuid()
,
split_geopoint()
,
split_geoshape()
,
split_geotrace()
,
strip_uuid()
,
tidyeval
,
unnest_all()
## Not run:
library(magrittr)
data("fq_raw")
data("fq_form_schema")
fq_with_dates <- fq_raw %>%
ruODK::odata_submission_rectangle() %>%
ruODK::handle_ru_datetimes(form_schema = fq_form_schema)
dplyr::glimpse(fq_with_dates)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.