Message-ID: <CAAmySGMFBNU7RN9Pp_7xReSrC+x1ardVVT9XuZmh8wNy4WmrnQ@mail.gmail.com>
Date: 2011-10-18T19:11:36Z
From: R. Michael Weylandt
Subject: reading a dense file of binary number
In-Reply-To: <CAFb-WN2+Nf8N4d+4AUOmWydF9aJGxu-EKZNDKSCcD7dB3whvhw@mail.gmail.com>
Would readLines() work?
Michael
On Tue, Oct 18, 2011 at 3:09 PM, Brian Tsai <btsai00 at gmail.com> wrote:
> hi all,
>
> i have a file of the following format that i want to read into a matrix:
>
> 010101001110101
> 101010010111110
> 010010100100000
> ...
>
> it has no headers or row names.
>
> I tried to use read.table(), but it doesn't allow me to specify nothing as
> the column separator (specifying sep='' means whitespace for that
> function). ?read.fwf doesn't seem appropriate either.
>
> ? ? ? ?[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org 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.
>