mirror of
https://github.com/agdamsbo/daDoctoR.git
synced 2024-11-22 11:50:23 +01:00
14 lines
308 B
R
14 lines
308 B
R
#' 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)
|
|
## Input format as dd/mm/yyyy, output is standard yyyy-mm-dd
|
|
{
|
|
result<-as.Date(x, format="%d/%m/%Y")
|
|
print(result)
|
|
}
|