Re: [R] Problem with comparing multiple data sets

2015-05-29 Thread Jim Lemon
Hi Mohammad, It looks like you are still having problems with this. Given your latest data set, as below, here is something that might do what you want. From David's message, I'm not sure whether you are operating on a single data frame or a list. # this is the data set as taken from your message

Re: [R] Problem with comparing multiple data sets

2015-05-29 Thread John Kane
me", row.names = c(NA, -49L)) ##===== John Kane Kingston ON Canada -----Original Message- From: mxalimoha...@ualr.edu Sent: Fri, 29 May 2015 11:40:41 -0500 To: dcarl...@tamu.edu, drjimle...@gmail.com, jrkrid...@inbox.com, r-help@r-project.org Subject: Re

Re: [R] Problem with comparing multiple data sets

2015-05-29 Thread Mohammad Alimohammadi
r help ! > > On Wed, May 27, 2015 at 7:31 PM, David L Carlson > wrote: > >> cat(paste0("[", 1:length(Out), "] #dac ", Out), sep="\n") >> >> David >> >> *From:* Mohammad Alimohammadi [mailto:mxalimoha...@ualr.edu] >>

Re: [R] Problem with comparing multiple data sets

2015-05-28 Thread John Kane
:31:45 + > To: mxalimoha...@ualr.edu, r-help@r-project.org > Subject: Re: [R] Problem with comparing multiple data sets > > cat(paste0("[", 1:length(Out), "] #dac ", Out), sep="\n") > > David > From: Mohammad Alimohammadi [mailto:mxalimoh

Re: [R] Problem with comparing multiple data sets

2015-05-27 Thread David L Carlson
cat(paste0("[", 1:length(Out), "] #dac ", Out), sep="\n") David From: Mohammad Alimohammadi [mailto:mxalimoha...@ualr.edu] Sent: Wednesday, May 27, 2015 2:29 PM To: David L Carlson; r-help@r-project.org Subject: Re: [R] Problem with comparing multiple data sets

Re: [R] Problem with comparing multiple data sets

2015-05-27 Thread Mohammad Alimohammadi
] ", Out), sep="\n") > > > David L. Carlson > Department of Anthropology > Texas A&M University > > > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Mohammad > Alimohammadi > Sent: Wednesday, May 27, 2015 1:

Re: [R] Problem with comparing multiple data sets

2015-05-27 Thread David L Carlson
quot;\n") David L. Carlson Department of Anthropology Texas A&M University -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Mohammad Alimohammadi Sent: Wednesday, May 27, 2015 1:47 PM To: John Kane; r-help@r-project.org Subject: Re: [R] Problem with c

Re: [R] Problem with comparing multiple data sets

2015-05-27 Thread Mohammad Alimohammadi
i in 1:length(x)) >> x[[i]]<-sub_value(x[[i]],fieldname1,value1,fieldname2,most_freq) >> return(x) >> } >> >> conformity(dflist,"Text","text1","Class") >> >> Jim >> >> On Sat, May 23, 2015 at 11:23 PM, John Kane

Re: [R] Problem with comparing multiple data sets

2015-05-27 Thread Mohammad Alimohammadi
reliability study. Does each data set contain the same set of items ? > > > John Kane > Kingston ON Canada > > -Original Message- > From: mxalimoha...@ualr.edu > Sent: Wed, 27 May 2015 09:18:12 -0500 > To: jrkrid...@inbox.com, r-help@r-project.org > Subject: R

Re: [R] Problem with comparing multiple data sets

2015-05-27 Thread Mohammad Alimohammadi
o back and re-examine Jim's approach. > > You might want to create three sample data sets of the original data > layouts and upload them, in dput() format, to the list. It may be easier > to tackle from that approach. > > In any case, in the existing data set is a 2 a nume

Re: [R] Problem with comparing multiple data sets

2015-05-27 Thread John Kane
uot;terms"), class = "data.frame", row.names = c(NA, -49L)) names(dat1) <- names(dat2) <- names(dat3) <- c("class", "term") bbind <- rbind(dat1, dat1, dat3) with(bbind, table( term, class)) #= John Kane

Re: [R] Problem with comparing multiple data sets

2015-05-27 Thread John Kane
:12 -0500 To: jrkrid...@inbox.com, r-help@r-project.org Subject: Re: [R] Problem with comparing multiple data sets Hi John, I created the original data set with dput . This time I only loaded 50 values for each data set (dat1, dat2, dat3). About your question, all 0,1 and 2 are indicator of a

Re: [R] Problem with comparing multiple data sets

2015-05-27 Thread John Kane
age- > From: mxalimoha...@ualr.edu > Sent: Tue, 26 May 2015 20:11:08 -0500 > To: r-help@r-project.org > Subject: Re: [R] Problem with comparing multiple data sets > > Thank you John. Yes. as you mentioned this is not really what I am > looking > for. > > It's int

Re: [R] Problem with comparing multiple data sets

2015-05-27 Thread John Kane
indicator? John Kane Kingston ON Canada > -Original Message- > From: mxalimoha...@ualr.edu > Sent: Tue, 26 May 2015 20:11:08 -0500 > To: r-help@r-project.org > Subject: Re: [R] Problem with comparing multiple data sets > > Thank you John. Yes. as you mentioned this is

Re: [R] Problem with comparing multiple data sets

2015-05-26 Thread Mohammad Alimohammadi
ue", >na.rm = FALSE) > > mdat1 <- aggregate(value ~ terms + class, data = mdat, sum) > > mdat1[order(mdat1$terms, mdat1$class), ] > > #========= > > > John Kane > Kingston ON Canada > > -Original Message-

Re: [R] Problem with comparing multiple data sets

2015-05-24 Thread Jim Lemon
This > is the generally preferred way to supply sample or illustrative data to the > R-help list. It basically creates a perfect copy of the data as it exists on > 'your' machine so that R-help readers see exactly what you do. > > > > > > > > John Kane

Re: [R] Problem with comparing multiple data sets

2015-05-23 Thread John Kane
ane Kingston ON Canada > -Original Message- > From: mxalimoha...@ualr.edu > Sent: Fri, 22 May 2015 12:37:50 -0500 > To: r-help@r-project.org > Subject: [R] Problem with comparing multiple data sets > > Hi everyone, > > I am very new to R and I have a task to do. I a

[R] Problem with comparing multiple data sets

2015-05-22 Thread Mohammad Alimohammadi
Hi everyone, I am very new to R and I have a task to do. I appreciate any help. I have 3 data sets. Each data set has 4 columns. For example: Class Comment Term Text 0 com1aactext1 2 com2aaxtext2 1 com3vvxtext3 Now I need t c