I have database write as .csv file.
When I want to get sth from my database I get NULL, but I know that there is
sth! 
For example:

> data$ID
NULL
> data$kod
NULL

but command like below is always recognize by R
> data[2,3]
[1] '082'

In my opinion this problem is also connect with my attempt to create a tree.
I always get errors.

> t.tree0=rpart(ID~.,t.train)
Error in eval(expr, envir, enclos) : object "ID" not found

> t.tree0=rpart(kod~.,t.train)
Error in eval(expr, envir, enclos) : object "kod" not found

What I should do to create my simple trees?
-- 
View this message in context: 
http://www.nabble.com/data%24ID--%3E-I-always-get-a-NULL-tp23128214p23128214.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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