Displaying 2 results from an estimated 2 matches for "finalinput".
2009 Dec 20
2
read.table: mysterious line omissions
...eadLines, or some other tool that can read
in character strings, and then parse and input to a table, but that seems
like overkill, and probably it would be good to understand what's wrong with
my text file.
The file is here.
https://regtransfers-sth-se.diino.com/download/jonsleepy/_mydropbox_/finalInput.xls
The code is here:
temp <- as.matrix(read.table('finalInput.xls', header=FALSE, sep = "\t"))
dim(temp) #expect 1990 x 2; but find 362 x 2
Sorry to require a download (this probably won't make people happy), but
since my problem is file-specific, the file is needed for...
2008 Sep 12
4
reading in results from system(). There must be an easier way...
...tsv values
     rawInput = strsplit(rawInput, split="\t");##split elements w/in the list
 					      ##of character strings by "\t"
     rawInput = unlist(rawInput); ##unlist, making it one long vector
     mode(rawInput)="double"; ##convert from strings to double
     finalInput = data.frame(t(matrix(rawInput, nrow=6))); ##convert
Because I will be doing this 100,000 of times as part of an optimization 
problem, I am interested in learning a more efficient way of doing this 
conversion.
Any suggestions would be appreciated.
Thanks in advance.
Mike
------------------...