Brand new at R.
I have a table of data with two date fields: ReportingPeriodStart Classdate
I need two data sets: those rows where ReportingPeriodStart is less than Classdate and one where Reportingperiodstart is greater than Classdate.
I thought I might be able to do something like this:
PreStuff <- subset(boost, REPORTINGPERIODENDDATE < WaveStart,
select = c(PROVIDERNAME,DEPARTMENT,SPECIALTY,
REPORTINGPERIODENDDATE,WaveStart TOSH,TOUD,TIMEINSYS,SEVENASEVENP,PJTIME,PROFSCORE)
)
but I'm getting the error: unexpected symbol in "prestuff ...."
I've looked through similar posts but each of those has a dataset that's a list of hardwired dates. I have two date fields I have to compare.
I just got R installed a few days ago and am able to use the plot(x,y)
function basically.
How would one go about grabbing those rows where one datefield is less than another date field?