mirror of
https://github.com/agdamsbo/daDoctoR.git
synced 2024-10-30 02:31:52 +01:00
15 lines
342 B
R
15 lines
342 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
|
|
#' @examples
|
|
#' date_convert()
|
|
|
|
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)
|
|
} |