Re: [R] Convert to a vector to read.table output format

2015-05-17 Thread കുഞ്ഞായി kunjaai
Thank you all for your time.. Thank you Now its working :)) Cheers . On Sun, May 17, 2015 at 4:34 AM, Jim Lemon wrote: > Hi കുഞ്ഞായി, > It looks like you want write.table. > > # as Rui Suggested > names(index_data) <- paste0("V", 1:length(index_data)) > write.table(index.ta

Re: [R] Convert to a vector to read.table output format

2015-05-17 Thread Jim Lemon
Hi കുഞ്ഞായി, It looks like you want write.table. # as Rui Suggested names(index_data) <- paste0("V", 1:length(index_data)) write.table(index.table,"index_table_file.txt",row.names=FALSE) Jim On Sun, May 17, 2015 at 4:33 AM, Rui Barradas wrote: > Hello, > > I'm not exactly sure of what you want

Re: [R] Convert to a vector to read.table output format

2015-05-16 Thread Rui Barradas
Hello, I'm not exactly sure of what you want. 1) If you just want that output, just set the names attribute of index_data. names(index_data) <- paste0("V", 1:length(index_data)) 2) If you want to create a data.frame from index_data try the following. dat <- data.frame(index_data[1]) for(i i

[R] Convert to a vector to read.table output format

2015-05-16 Thread കുഞ്ഞായി kunjaai
Dear all, I want to convert a variable (that variable obtained from an 'nc ' file) I want to convert it into a* read.table* output format Example: > index_data<-get.var.ncdf(f_hist ,"meant_iitm_ALLIN_YEAR") > index_data [1] 24.06333 24.07208 24.20208 24.12625 24.27333 24.42458 24.26583 [8] 2