[R] Characters To Matrix

jim holtman jholtman at gmail.com
Tue Mar 3 14:16:30 CET 2009


Why aren't you using 'read.table'?

On Tue, Mar 3, 2009 at 3:47 AM, Bob Roberts <quagmire54321 at yahoo.com> wrote:
> Hi,
>   I have a data set that I read in using readLines, but R classes it as a character string. The data set has multiple columns and rows, but I only want the first 2 columns in the form of a matrix. Thanks for the help.
>
>
>
>
>        [[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.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?




More information about the R-help mailing list