Re: [R] combing list objects

2012-09-03 Thread Rui Barradas
Hello, Try ?unlist. unlist(abun) Hope this helps, Rui Barradas Em 03-09-2012 17:06, chris20 escreveu: Hi, I am trying to combine a long list but I can't work out how to do it, for example: abun<-list(rep(0,5),rep(0,7),rep(0,4),rep(0,10)) nb<-c(5,5,1,8) fill.abun <- function(x, y) {

Re: [R] Combing

2010-03-29 Thread Matthew Dowle
Val, Type "combine two data sets" (text you wrote in your post) into www.rseek.org. The first two links are: "Quick-R: Merge" and "Merging data: A tutorial". Isn't it quicker for you to use rseek, rather than the time it takes to write a post and wait for a reply ? Don't you also get more de

Re: [R] Combing

2010-03-29 Thread jim holtman
?merge On Mon, Mar 29, 2010 at 7:13 AM, Val wrote: > Hi all, > > I want to combine two data sets (ZA and ZB to get ZAB). > The common variable between the two data sets is ID. > > Data ZA > ID F M > 1 0 0 > 2 0 0 > 3 1 2 > 4 1 0 > 5 3 2 > 6 5 4 > > Data ZB > > ID v1 v2 v3 > 3 2.

Re: [R] Combing xyplot and curve() plot via print

2008-11-10 Thread Afshartous, David
Thanks. I tried you suggestion and it indeed solves the problem. For the sample code below the appropriate substitute to the curve function is: xv = seq(0, 3, by = .05) yv = sin(xv) yv.new = cos(xv) p.12 = xyplot(yv + yv.new ~ xv, type="l", lty=c(1,5), col="black") On 11/10/08 2:09 PM, "Greg

Re: [R] Combing xyplot and curve() plot via print

2008-11-10 Thread Greg Snow
The xyplot function is a lattice function that uses grid graphics. The curve function is a base graphics function. 'par' and 'layout' work with base graphics, the print idea works with grid graphics. Grid graphics and base graphics don't mix easily. One option is to find a grid/lattice/ggplo