Thanks a lot!!, So nice to get such a fast reply and not having to break my
head with it for a few more hours.
much appreciated.
Guy
--
View this message in context:
http://r.789695.n4.nabble.com/help-with-a-simple-function-tp4676026p4676051.html
Sent from the R help mailing list archive at N
hi, I am new to are, very new and want to ask what's wrong with this
function: It is suppose to read a table and return its matrix transposed
with NA replaced by the average of each column and a row of means at the
bottom row. The separated parts are returned correctly. Thanks a lot for any
help.
Hi,
rownames(y_raw_mt)=y_raw[,1] ## y_raw not defined.
set.seed(25)
mat1<- matrix(sample(c(NA,1:20),100,replace=TRUE),20,5)
#changed the function to process 'mat1'. Also, it is better to read the file
separately and check ?str(dt.table) before proceeding.
write.table1=function(durty_data){
3 matches
Mail list logo