[R] Issue when reading a table into R

David Reiner David.Reiner at xrtrading.com
Thu Mar 7 15:59:39 CET 2013


Or if you just want to see what the table will look like when you read it
but not clutter your workspace by assigning it, you can do

View(head(read.table(filename),20))

-- David


-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Sarah Goslee
Sent: Wednesday, March 06, 2013 3:21 PM
To: Paul Bernal
Cc: r-help
Subject: Re: [R] Issue when reading a table into R

Since nobody else has mentioned it: if you are seeing that message
when you are reading data in, then you probably failed to assign the
data to an R object.

mydata <- read.table("somefile") # correct
read.table("somefile") # will simply print your data to the console, not save it

I'm not entirely sure what you meant by "retrieve" so maybe you
already knew this.

You can use e.g.
dim(mydata)
to find out whether it's the size you expect.

Sarah

On Wed, Mar 6, 2013 at 3:58 PM, Paul Bernal <paulbernal07 at gmail.com> wrote:
> Hello everyone,
>
> I was reading a table into R, and when trying to retrieve it the following
> message appeared:
>
>  [ reached getOption("max.print") -- omitted 469376 rows ]
>
> Does this mean that R left out 469376 rows? Or R is taking those 469376
> rows as well and the limitation is only for printing purposes?
>
> Thanks in advance for any help,
>
> Best regards,
>
> Paul

--
Sarah Goslee
http://www.functionaldiversity.org

______________________________________________
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.


This e-mail and any materials attached hereto, including, without limitation, all content hereof and thereof (collectively, "XR Content") are confidential and proprietary to XR Trading, LLC ("XR") and/or its affiliates, and are protected by intellectual property laws.  Without the prior written consent of XR, the XR Content may not (i) be disclosed to any third party or (ii) be reproduced or otherwise used by anyone other than current employees of XR or its affiliates, on behalf of XR or its affiliates.

THE XR CONTENT IS PROVIDED AS IS, WITHOUT REPRESENTATIONS OR WARRANTIES OF ANY KIND.  TO THE MAXIMUM EXTENT PERMISSIBLE UNDER APPLICABLE LAW, XR HEREBY DISCLAIMS ANY AND ALL WARRANTIES, EXPRESS AND IMPLIED, RELATING TO THE XR CONTENT, AND NEITHER XR NOR ANY OF ITS AFFILIATES SHALL IN ANY EVENT BE LIABLE FOR ANY DAMAGES OF ANY NATURE WHATSOEVER, INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, CONSEQUENTIAL, SPECIAL AND PUNITIVE DAMAGES, LOSS OF PROFITS AND TRADING LOSSES, RESULTING FROM ANY PERSON'S USE OR RELIANCE UPON, OR INABILITY TO USE, ANY XR CONTENT, EVEN IF XR IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGES OR IF SUCH DAMAGES WERE FORESEEABLE.



More information about the R-help mailing list