[R] extracting rows and columns from a big matrix

Sarah Goslee sarah.goslee at gmail.com
Mon Jul 16 21:26:27 CEST 2012


Did you follow up on Bill's suggestion?

>> -----Original Message-----
>> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
>> project.org] On Behalf Of William Dunlap
>> Sent: Monday, July 16, 2012 10:39 AM
>> To: A J; smartpink111 at yahoo.com
>> Cc: r-help at r-project.org
>> Subject: Re: [R] extracting rows and columns from a big matrix
>> Did you ever show the code that caused the problem?
>> In particular, was it one very long line of code?  It is possible
>> that copying and pasting a long line into R might cause problems,
>> but the details would depend on which OS you are using and
>> which user interface you are using.  The "+" prompt means
>> that R did not see the end of an expression, typically because
>> of an unmatched quotation mark or left parenthesis.
>> Of course, the whole line might have been entered and there
>> may have been a missing ")" or "'" in it, but no one can tell
>> without seeing the code.

My guess is he's absolutely right, and you are copy-and-pasting
instead of using source(), but you do not ever say, as far as I can
tell in the large number of mostly-repetitive messages.

Save your very long command into a text file, preferably with an
editor that does syntax highlighting and parenthesis matching, use
source(), and let us know if it works.


Sarah Goslee

More information about the R-help mailing list