The R Project SVN R

Rev

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

Rev 59039 Rev 61150
Line 79... Line 79...
79
# remove the names attribute
79
# remove the names attribute
80
names(islands) <- NULL
80
names(islands) <- NULL
81
islands
81
islands
82
rm(islands) # remove the copy made
82
rm(islands) # remove the copy made
83
 
83
 
84
z <- list(a=1, b="c", c=1:3)
84
z <- list(a = 1, b = "c", c = 1:3)
85
names(z)
85
names(z)
86
# change just the name of the third element.
86
# change just the name of the third element.
87
names(z)[3] <- "c2"
87
names(z)[3] <- "c2"
88
z
88
z
89
 
89