View source: R/sasWhereConstructors.R
sasDateRange | R Documentation |
Helper function for making sas "Where" statements for use in importSAS(). Creates date range (inclusive) in SAS formate
sasDateRange(var.date, date.start, date.end, inclusive = TRUE)
var.date |
Name of the date variable in the SAS dataset |
date.start |
The start date of the desired date range in r date format |
date.end |
The end date of the desired date range in r date format |
inclusive |
Logical. If |
Function returns a string that can be passed to the "where" statement of importSAS. Alternatinvely it can be passed to makeSasWhereStatment function to be combined with further SAS where statements
Matthew Phelps <mphelps@hjerteforeningen.dk>
sasDateRange("inddto", as.Date("2015-01-01"), as.Date("2016-01-01"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.