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) {

[R] combing list objects

2012-09-03 Thread chris20
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) { set <- sample(1:length(x), size = y) x[set] <- rlnorm(length(set)) return(x) }

[R] Combing forest plots

2011-01-26 Thread Ross, Stephanie
Hi All, I am trying to combine two forest plots on the same page using the "forestplot" function in the rmeta package. Once I use the par() function to combine my plots on the same page, I find that my two plots are overlaying each other. Does anyone have any suggestions on how to fix this? T

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.

[R] Combing

2010-03-29 Thread Val
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.5 3.4 302 4 8.6 2.9 317 5 9.7 4.0 325 6 7.5 1.9 296 Output (ZAB) ID F M v1 v2

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

2008-11-10 Thread Afshartous, David
artous, David > Sent: Monday, November 10, 2008 8:51 AM > To: r-help@r-project.org > Subject: [R] Combing xyplot and curve() plot via print > > All, > > I'm trying to put an xyplot and a plot produced via curve() on the same > page. It seems that mfrow and layout don&#x

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

2008-11-10 Thread Greg Snow
egory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] 801.408.8111 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of Afshartous, David > Sent: Monday, November 10, 2008 8:51 AM > To: r-h

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

2008-11-10 Thread Afshartous, David
All, I'm trying to put an xyplot and a plot produced via curve() on the same page. It seems that mfrow and layout don't work, and now I'm trying print but that does not work either. Any suggestions much appreciated. Cheers, David p.11 = xyplot(1:10 ~ 1:10) curve(sin, 0,3, ylim=c(-3,3), ylab="

[R] combing two or more matrices into one file

2008-01-04 Thread Wade Wall
Hi all, I am working with the package popbio (demographic work) at the moment and there is an included dataset, whale, that includes to matrices of equal dimensions. One represents transition values and one represents recruitment of new individuals (whale$T and whale$F respectively). I have some