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