Hello:

I am new on R, this is the first time I work with it,
I am trying to run some R example to get learn of them,
but, I have a problem when running the example below:

http://stat.ethz.ch/R-manual/R-patched/library/datasets/html/zCO2.html

CO2.Qn1 <- CO2[CO2$Plant == "Qn1", ]
SSasympOff(CO2.Qn1$conc, 32, -4, 43)  # response only
Asym <- 32; lrc <- -4; c0 <- 43
SSasympOff(CO2.Qn1$conc, Asym, lrc, c0) # response and gradient
getInitial(uptake ~ SSasympOff(conc, Asym, lrc, c0), data = CO2.Qn1)
## Initial values are in fact the converged values
fm1 <- nls(uptake ~ SSasympOff(conc, Asym, lrc, c0), data = CO2.Qn1)
summary(fm1)
I am facing the error below:

> ### ** Examples
>
> CO2.Qn1 <- CO2[CO2$Plant == "Qn1", ]
Error: object 'CO2' not found
Execution halted


I have the packages required (stats,graphics) and they are loaded as

library() and search() shows.

Any clue about it?


Thanks,
Humberto.
                                          
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to