[R] unable to subtract dates in R

2012-07-11 Thread William Mabe
Hi, I wanted to calculate the age of people in my dataset by subtracting the individual's date of birth from their intake into a program. After several hours, searches of help archives, and the downloading of lubiridate, I have had no luck with this. Below is the code I used. > intakeDS$DOB <-

[R] Merging yields "Error: unexpected input ..."

2011-06-16 Thread William Mabe
I am new to R and am having difficulty merging 2 data sets, both of which have the same 30 variables and about 2,000 records. I've looked high and low—Paul Johnson's help page, through some of the 5,420 (yikes!) results for “merge” on the R list archives, and google searches—and I'm ge