Class("person",representation(age="numeric",weight="numeric"))
[1] "person"
> bob <- new("person",age=30)
> is.null(b...@weight)
[1] FALSE
> b...@weight
numeric(0)
> b...@weight == numeric(0)
logical(0)

How can i test to see if a s4 property is assigned?

-- 
View this message in context: 
http://r.789695.n4.nabble.com/test-to-see-if-a-s4-property-is-assigned-tp2541044p2541044.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