[R] I want to fill a column in with 0 or 1 depending on another columns input

2012-03-05 Thread kevin123
This is a portion of my data frame MemberIDSpecialty Surgery Internal 1 42286978 Surgery NA NA 2 97903248 Internal NA NA 3 2759427 Internal NA

[R] How to deal with missing values when using Random Forrest

2012-02-25 Thread kevin123
I am using the package Random Forrest to test and train a model, I aim to predict (LengthOfStay.days),: > library(randomForest) > model <- randomForest( LengthOfStay.days~.,data = training, + importance=TRUE, + keep.forest=TRUE + ) *This is a small portion of the data frame: * *data(traini

[R] Rearanging Data

2012-02-08 Thread kevin123
Hi, This is only a small portion of the Data i am working on I want to make a subset of this data set( Data Set=Claims) MemberID ProviderID Vendor PCPYear Specialty 1 422869788013252 172193 37796 Y1Surgery 2 979032483316066 726296 5300Y3

Re: [R] Using write.table i have a table with two columns i would like to save it as an excel file

2011-08-25 Thread kevin123
want as long as it ends in ".csv". (It doesn't even > technically have to do that, but please do -- it will make your life better > > when dealing with Excel) > > Michael > > On Thu, Aug 25, 2011 at 12:58 PM, kevin123 <[hidden > email]<http://user/SendEmail

[R] Using write.table i have a table with two columns i would like to save it as an excel file

2011-08-25 Thread kevin123
Using write.table i would like to save data as an excel file to a folder. I am not too sure how to write the file path or what to name the file. I would appreciate any feedback. > write.table(x, file = "", append = FALSE, quote = TRUE, sep = " ", + eol = "\n", na = "NA", dec = ".",