I am currently following the code in section C.6 on design covariates in the most recent version of the chapter found on the site (08.02.2013). At the top of page C-29, we define a dataframe for effort, then merge it with the rest of the dipper data already in hand.
- Code: Select all
df=data.frame(time=c(1980:1986),effort=c(10,5,2,8,1,2,3))
dipper.ddl=merge\_occasion.data(dipper.process,dipper.ddl,"p",df)
When I run the second line, I get the following:
"Error: unexpected input in "dipper.ddl=merge\"
Normally I can figure out the issue (a typo in my code) and resolve, but I've had no luck with this one. Can anyone put me back on the right track? Is this an error in the code provided, or possibly something wrong with my installation? Everything else has run fine, and I just updated to the latest versions (last week) of R and MARK. Any thoughts would be appreciated.
Shane