R/xpssDate.R

Defines functions xpssDate

Documented in xpssDate

#' Today's date 
#'
#' R implementation of the SPSS \code{$date} system variable. 
#' 
#' xpssDate provides the SPSS format of dates.
#' 
#' @usage xpssDate()
#' @return Current date as "dd-mmm-yy". Day and year are numeric values with the length two, month is a character string with the length three.
#' @author Bastian Wiessner
#' @examples 
#' xpssDate()
#' @export

xpssDate <- function(){

  (today <- Sys.Date())
  today <- toupper(today)
  
  return(today)
}

as.POSIXct

Try the translateSPSS2R package in your browser

Any scripts or data that you put into this service are public.

translateSPSS2R documentation built on May 30, 2017, 4:31 a.m.