View source: R/utils_time_keywords_translate.R
utils_time_keywords_translate | R Documentation |
Internal function to translate misnamed or abbreviated keywords into valid ones. Uses utils_time_keywords_dictionary()
as reference dictionary.
utils_time_keywords_translate(keyword = NULL)
keyword |
(optional, character string) A time keyword such as "day". Default: NULL |
Time keyword.
Other internal_time_handling:
utils_as_time()
,
utils_coerce_time_class()
,
utils_is_time()
,
utils_new_time()
,
utils_time_keywords()
,
utils_time_keywords_dictionary()
,
utils_time_units()
#millennia
utils_time_keywords_translate(
keyword = "1000 years"
)
utils_time_keywords_translate(
keyword = "1000 y"
)
utils_time_keywords_translate(
keyword = "thousands"
)
#years
utils_time_keywords_translate(
keyword = "year"
)
utils_time_keywords_translate(
keyword = "y"
)
#days
utils_time_keywords_translate(
keyword = "d"
)
utils_time_keywords_translate(
keyword = "day"
)
#seconds
utils_time_keywords_translate(
keyword = "s"
)
utils_time_keywords_translate(
keyword = "sec"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.