Displaying 1 result from an estimated 1 matches for "testlist2".
Did you mean:
testlist
2012 May 03
1
deparse(substitute(x)) on an object with S3 class
...t("Your object name is",xname,"\n")
}
testlist <- list()
testlist[[1]] <- 1:10
class(testlist) <- "testclass"
# This does not work as expected:
> testlist
Your object name is structure(list(1:10), class = "testclass")
# But this does :
> testlist2 <- unclass(testlist)
> print.testclass(testlist2)
Your object name is testlist2
thanks,
Remko Duursma
--
View this message in context: http://r.789695.n4.nabble.com/deparse-substitute-x-on-an-object-with-S3-class-tp4605592.html
Sent from the R help mailing list archive at Nabble.com.