search for: mtcars1

Displaying 2 results from an estimated 2 matches for "mtcars1".

Did you mean: mtcars
2008 Dec 02
4
Bug in "transform"?
Dear useRs, Here is a weird behavior of transform function: mtcars1<-matcars transform(mtcars1,t1=3,t2=4) Error in data.frame(`_data`, e[!matched]) : arguments imply differing number of rows: 32, 1 instead, this works: mtcars1$t1<-0 transform(mtcars1,t1=3,t2=4) also works if applied in turn: transform(mtcars1,t1=3) transform(mtcars1,t2=4...
2012 Aug 30
2
Identifying and Removing NA Columns and factor Columns with more than x Levels
...equal to 32 levels? ** I know how to remove columns at a basic level but I am trying to figure out a more efficient way of performing these particular tasks (my data set has 60 columns). For NA's I essentially used summary(mtcars) and manually made a note of where NA's appeared than used: mtcars1<-mtcars1[,!(names(mtcars1)%in% c("hp","wt","vs"))] I did something similar for factors with greater than x levels only I used str(mtcars) to help me identify them. BTW I know mtcars doesn't have any of these issues. I just used it as a quick reference. Dan...