The R Project SVN R

Rev

Rev 59039 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61168
Line 39... Line 39...
39
data.class(factor(x))                 # has a class attribute
39
data.class(factor(x))                 # has a class attribute
40
data.class(matrix(x, ncol = 13))      # has a dim attribute
40
data.class(matrix(x, ncol = 13))      # has a dim attribute
41
data.class(list(x))                   # the same as mode(x)
41
data.class(list(x))                   # the same as mode(x)
42
data.class(x)                         # the same as mode(x)
42
data.class(x)                         # the same as mode(x)
43
 
43
 
44
stopifnot(data.class(1:2) == "numeric")# compatibility "rule"
44
stopifnot(data.class(1:2) == "numeric") # compatibility "rule"
45
}
45
}
46
\keyword{classes}
46
\keyword{classes}
47
\keyword{methods}
47
\keyword{methods}