Re: [R] Amelia error

2012-04-18 Thread Gaurav Sood
0 0 0 0 1 ... $ gender : Factor w/ 2 levels "1. Male","2. Female": 1 1 2 1 2 1 2 2 1 2 ... $ demrep.1 : num 4 3 7 4 7 4 7 2 3 7 ... $ race : chr "White" "Other" "White" "Other" ... On Wed, Apr 18, 2012 at 2:44 PM, Peter Ehlers

Re: [R] Amelia error

2012-04-18 Thread Gaurav Sood
, Apr 18, 2012 at 2:32 PM, Sarah Goslee wrote: > Hi, > > On Wed, Apr 18, 2012 at 2:18 PM, Gaurav Sood wrote: >> Using: Amelia::amelia >> >> R version: 2.15 >> OS: Windows 7 Enterprise >> >> data = National Election Studies (cross-sectional); mostly ord

Re: [R] Amelia error

2012-04-18 Thread Gaurav Sood
a bug" rather than user error unless > we know a whole lot more about it. > > Sarah > > On Wed, Apr 18, 2012 at 1:33 PM, Gaurav Sood wrote: >> Hi, >> >> Encountering the following error using Amelia - >> >> Error in if (sum(non.var

[R] Amelia error

2012-04-18 Thread Gaurav Sood
Hi, Encountering the following error using Amelia - Error in if (sum(non.vary == 0)) { : argument is not interpretable as logical In addition: Warning message: In FUN(X[[34L]], ...) : NAs introduced by coercion Seems like a bug. __ R-help@r-project.

Re: [R] writing data to file

2012-03-22 Thread Gaurav Sood
look up dump On Thu, Mar 22, 2012 at 11:35 AM, mail me wrote: > Hi: > > I created a data frame > > df <- data.frame( person = c('John','Bob','Mary'), team = > c('a','b','c'), stringsAsFactors = F); > > and obtained the expected  output > >  df >  person   team > 1   John      a > 2    Bob      b

Re: [R] compare two data frames with same columns names but of different dimensions

2012-02-27 Thread Gaurav Sood
m <- rbind(reported, exportfile) m1 <- m[duplicated(m),] m[is.na(match(m$key, m1$key)),] On Mon, Feb 27, 2012 at 9:46 AM, Arnaud Gaboury wrote: > Dear List, > > I want to compare and return the rows which are NOT in the two data frames. > Classic methods don't work as the df have NOT the same di