[R] extracting rows and columns from a big matrix

A J anxusgo at hotmail.com
Tue Jul 17 00:14:32 CEST 2012





Hi everybody.

I didn't write the code because of it is very long one, but I have decided to enclose it in a text file. It is divided in:

1) the whole code that doesn't work

2) Seven parts which code was splited in and working

I am using R 64-bits release running on Windows 7. Sure, I was copy-and-pasting code and executing all operations using Notepad++. Besides, I am newbie using R and I am employing R Studio to develop this tests. I am not sure what are you meaning when you recommend me source(). Are you saying regarding R or text editor? I have read something about problems with encoding and for this reason I have save the file in UTF-8 as well. I gues this is a problem related to length of code line because when I have divided the whole code into several parts, some of them didn't work till I shortened them.

Sorry so much for all inconveniences.

AJ


> Date: Mon, 16 Jul 2012 15:26:27 -0400
> From: sarah.goslee en gmail.com
> To: r-help en r-project.org
> Subject: Re: [R] extracting rows and columns from a big matrix
> 
> Hi,
> 
> Did you follow up on Bill's suggestion?
> 
> >> -----Original Message-----
> >> From: r-help-bounces en r-project.org [mailto:r-help-bounces en r-
> >> project.org] On Behalf Of William Dunlap
> >> Sent: Monday, July 16, 2012 10:39 AM
> >> To: A J; smartpink111 en yahoo.com
> >> Cc: r-help en 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
> 
> -- 
> Sarah Goslee
> http://www.functionaldiversity.org
> 
> ______________________________________________
> R-help en 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.

 		 	   		  
------------ pr?xima parte ------------
An embedded and charset-unspecified text was scrubbed...
Name: long_code_r.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120717/513d3142/attachment.txt>


More information about the R-help mailing list