The R Project SVN R

Rev

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

Rev 27541 Rev 27712
Line 31... Line 31...
31
}
31
}
32
\seealso{\code{\link{attr}}.
32
\seealso{\code{\link{attr}}.
33
}
33
}
34
\examples{
34
\examples{
35
x <- cbind(a=1:3, pi=pi) # simple matrix w/ dimnames
35
x <- cbind(a=1:3, pi=pi) # simple matrix w/ dimnames
36
utils::str(attributes(x))
36
attributes(x)
37
 
37
 
38
## strip an object's attributes:
38
## strip an object's attributes:
39
attributes(x) <- NULL
39
attributes(x) <- NULL
40
x # now just a vector of length 6
40
x # now just a vector of length 6
41
 
41