Re: [R] large lines of data

From: Adaikalavan Ramasamy <ramasamy_at_cancer.org.uk>
Date: Wed 08 Feb 2006 - 23:15:18 EST

How does the data look and how are you storing in R (e.g. matrix, list)?

I think this an issue related to Word where it is using either unequal spaces or different carriage returns. I would not recommend storing data, especially numerical ones in the form of a matrix, in Word files.

I would recommend that you try to copy-and-paste into Excel first and clean it up there. Next save the file as tab delimited and use read.delim() in R.

My experience is that that Excel seems understands the oddities of Word better than R does.

Regards, Adai

On Wed, 2006-02-08 at 11:55 +0000, Sara Mouro wrote:
> Dear All,
>
>
>
> I have to enter many lines of data in the same object.
>
> I usually use copy-paste to transfer data from an Word file to R.
>
> But, for large lines of data, R gets "confused" and gives an error message,
> i.e. it breaks one line somewhere, and lines get no meaning at all.
>
>
>
> Some times I solve that problem adding "enters" and making each line
> shorter, before I do copy-paste. Some times I add "spaces" in the word
> document, until R breaks each line (automatically adds a +) in any point
> where it still correct..
>
> But it stills too "subjective" for me! :o\
>
>
>
> What is the best way to do that?
>
>
>
>
>
> Regards,
>
> Sara Mouro
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Feb 08 23:37:46 2006

This archive was generated by hypermail 2.1.8 : Fri 10 Feb 2006 - 20:04:35 EST