Thanks to all who replied! This is great! I am going to dig into this over
the holidays. I will post what I end up with...
Thanks again,
James Planey
Graduate Research Assistant
Department of Animal Biology
University of Illinois @ Urbana-Champaign
--
View this message in context:
http://www.
Here is an example of some code that might do it for you::
> input <- readLines(textConnection("19
> c:/data/WF-100/2008/20080911/trk/20080911.013115.007.17.txt
+ 10 s name of program that wrote this file trkplt name of program
that wrote this file
+ 10 GORDON machine that generated this fi
The output I would be looking for would be one row for each data file with
columns for each variable, so using a .csv example with a few variables
would be:
-
File_name,date_written,program_ver,data_file_ver,bin_width
20080911
It would be helpful if you could show what the output would be for the
example given. Exactly what are 'values' and what would be the
'headings'. As mentioned before, you can use readLines and then parse
the data you want, but something like Perl might be easier, but it is
hard to tell from the m
I usually use Unix tools to process really data beforehand (sed, awk), but
if you want a pure R solution it is usually possible to kludge
something together
with scan() working line by line.
# read a line
# if it contains stuff you aren't interested in, go on to the next line
# if it contains one
5 matches
Mail list logo