Re: [R] Appending Data to A n Existing List...

2010-02-18 Thread Jason Rupert
tuff=cost_limits)) [[1]] [1] "house" [[2]] [1] "brick" "wood" [[3]] [1] 1600 1800 2000 2400 [[4]] [1] 20.2 350010.2 $CostStuff [1] 20.2 350010.2 - Original Message From: Bert Gunter To: Jason Rupert ; R-help@r-project.org Sent: Thu, Februar

Re: [R] Appending Data to A n Existing List...

2010-02-18 Thread Bert Gunter
?c but you have to make sure z is a list: c(pts,z) ## probably is not what you want c(pts,list(z)) ## probably is, but z will be unnamed c(pts,list(z=z) ## names z "z" Cheers, Bert Gunter Genentech Nonclinical Biostatistics -Original Message- From: r-help-boun...@r-project.org

Re: [R] Appending Data to A n Existing List...

2010-02-18 Thread David Winsemius
On Feb 18, 2010, at 6:15 PM, Jason Rupert wrote: What steps can be take to append data to a list? Suppose I have the following list and want to append a z axist to the list? pts <- list(x=cars[,1], y=cars[,2]) z<-rnorm(max(dim(cars))) How would I go about appending z to an existing list?