On Mon, Feb 23, 2009 at 05:18:28AM -0800, canadiangirl19 wrote:
> My problem is now, that my file has a
> complicated structure: It is not tabstop seperated, it looks like that:
>
> JEAR JAN FEB MAR APR
> 1938 15 4 9 12
> 1939 6 7 10 14
> 194099999999999999999
>
> If there are default values, there is no seperation in the line, I want that
> the program seperates after every JAN, FEB (in detail after the 18., 24., 36
> character). Is there a possibility to seperate after i.e.the 15. character?
> i tried with strsplit, but get no satisfying result.
Sounds like read.fwf may solve your problem.
cu
Philipp
--
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
85350 Freising, Germany
http://mips.gsf.de/staff/pagel
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.