Re: [R] Problem with comparing multiple data sets

2015-05-29 Thread Mohammad Alimohammadi
rms to the result it gives me an error: > mode.names<- data.frame (df[,1],Out) Error in data.frame(df[, 1], Out) : arguments imply differing number of rows: 50, 3 On Thu, May 28, 2015 at 9:24 AM, Mohammad Alimohammadi < mxalimoha...@ualr.edu> wrote: > Thank you David for you

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 Mohammad Alimohammadi
for each row which is what I need. The only problem is that all the values are displayed in one single row. [1] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 1 1 1 1 0 0 0 0 2 1 2 It would be much better to show them in separate rows. For example: [1] 0 [2] 0 [

Re: [R] Problem with comparing multiple data sets

2015-05-27 Thread Mohammad Alimohammadi
ank you for your response. > >> > >> Here is a small portion of my actual data set. What I am supposed to > do > >> is to use a function similar to mode function in excel to find the most > >> frequent value (class) for each term. > >> >

Re: [R] Problem with comparing multiple data sets

2015-05-27 Thread Mohammad Alimohammadi
structure(list(aa = 1:10, bb = c(10L, 9L, 8L, 7L, 6L, 5L, 4L, > >> 3L, 2L, 1L)), .Names = c("aa", "bb"), row.names = c(NA, -10L), class = > >> "data.frame") > >> > >> dat1 > >> dat2 # looks a lot like dat1 > >>

Re: [R] Problem with comparing multiple data sets

2015-05-26 Thread Mohammad Alimohammadi
269/how-to-make-a-great-r-reproducible-example > [ > http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example]] > and http://adv-r.had.co.nz/Reproducibility.html [ > http://adv-r.had.co.nz/Reproducibility.html] [ > http://adv-r.had.co.nz/Reproducibility.htm

[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