Re: [R] Help with write.csv

2008-02-11 Thread Suhaila Zainudin
Thanks for the reply Richie. Finally I tried the following, > write.csv(mydata.imputed$data, file = "mydata_imputed.csv") and it worked. I guess I need to refer to the data portion (using $) of the imputed file.Do correct me if I am wrong, though! -- Suhaila Zainudin PhD Candidate Universiti

Re: [R] Help with write.csv

2008-02-11 Thread Richard . Cotton
> I am new to R. I am using the impute package with data contained in csv > file. > I have followed the example in the impute package as follows: > > > mydata = read.csv("sample_impute.csv", header = TRUE) > > mydata.expr <- mydata[-1,-(1:2)] > > mydata.imputed <- impute.knn(as.matrix(mydata.expr)

[R] Help with write.csv

2008-02-10 Thread Suhaila Zainudin
Dear all, I am new to R. I am using the impute package with data contained in csv file. I have followed the example in the impute package as follows: > mydata = read.csv("sample_impute.csv", header = TRUE) > mydata.expr <- mydata[-1,-(1:2)] > mydata.imputed <- impute.knn(as.matrix(mydata.expr))