R/xpssDate11.R

Defines functions xpssDate11

Documented in xpssDate11

#' Todays date 
#' 
#'  R implementation of the SPSS \code{$date11} system variable. 
#'
#' Provides the SPSS format of dates
#'
#' @usage xpssDate11()
#' @return Current date as "dd-mmm-yyyy". Day is a numeric with the length two, month is a character string with the length three and year is a numeric value with the length four. 
#' @author Bastia Wiessner
#' @examples
#' xpssDate11()
#' @export
xpssDate11 <- function(){
  
  (today <- Sys.Date())
  today <- toupper(today)
  
  return(today)
}

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.