daDoctoR/R/date_convert_function.R

14 lines
308 B
R
Raw Normal View History

2018-10-02 21:07:43 +02:00
#' Converting data format
#'
#' Input format as dd/mm/yyyy, output is standard yyyy-mm-dd
#' @param x data as as dd/mm/yyyy.
#' @keywords date
#' @export
date_convert<-function(x)
2019-11-08 12:22:49 +01:00
## Input format as dd/mm/yyyy, output is standard yyyy-mm-dd
2018-10-02 21:07:43 +02:00
{
result<-as.Date(x, format="%d/%m/%Y")
2019-11-08 12:22:49 +01:00
print(result)
}