The R Project SVN R

Rev

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

Rev 72564 Rev 74363
Line 81... Line 81...
81
as.vector(x)
81
as.vector(x)
82
 
82
 
83
## append to a list:
83
## append to a list:
84
ll <- list(A = 1, c = "C")
84
ll <- list(A = 1, c = "C")
85
## do *not* use
85
## do *not* use
86
c(ll, d = 1:3) # which is == c(ll, as.list(c(d = 1:3))
86
c(ll, d = 1:3) # which is == c(ll, as.list(c(d = 1:3)))
87
## but rather
87
## but rather
88
c(ll, d = list(1:3))  # c() combining two lists
88
c(ll, d = list(1:3))  # c() combining two lists
89
 
89
 
90
c(list(A = c(B = 1)), recursive = TRUE)
90
c(list(A = c(B = 1)), recursive = TRUE)
91
 
91