Re: [R] combine select data from 2 dataframes sharing same variables

2013-07-18 Thread bcrombie
Wow. That is exactly what I wanted (thread viewers see output below). I think/hope this script will be more user friendly for my needs (RTF final output) than the loop I currently have for LaTex output. Thanks very much A.K. I’ll need to send you a Bundt cake at some point I suppose… BN

Re: [R] combine select data from 2 dataframes sharing same variables

2013-07-18 Thread bcrombie
Hi, Peter. Thanks for the suggestion. I will investigate ?merge. BNC From: Peter Alspach-2 [via R] [mailto:ml-node+s789695n4671809...@n4.nabble.com] Sent: Wednesday, July 17, 2013 8:08 PM To: Crombie, Burnette N Subject: Re: combine select data from 2 dataframes sharing same variables Tena koe

Re: [R] combine select data from 2 dataframes sharing same variables

2013-07-17 Thread arun
Hi, Not sure if this is what you wanted: #If columns are arranged in the same order in both data.frames. lst1<-lapply(seq_len(ncol(StatsUTAH)),function(i) {x1<-cbind(StatsUTAH[,i],sStatsUTAH[,i]);row.names(x1)<-row.names(StatsUTAH);colnames(x1)<-c("zeroNO","zeroYES");x1})  names(lst1)<- colnames(

Re: [R] combine select data from 2 dataframes sharing same variables

2013-07-17 Thread Peter Alspach
Tena koe Without reading your request in detail, I will suggest you look at ?merge. It is often the answer when 'combine' is in the question. Peter Alspach -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of bcrombie Sent: Thursday,