[R] Perl "cut" equivalent in R

Peter Ehlers ehlers at ucalgary.ca
Thu Dec 2 01:12:48 CET 2010


On 2010-12-01 15:59, Jonathan Flowers wrote:
> Thanks Sarah, you are right.  In perl,  "cut" serves the function of
> eliminating a block of code from being executed in a script.  When "=cut" is
> placed above and below the code that you do not wish to execute then the
> interpreter will skip over the code.  There are lots of ways to solve the
> problem, but cut is a handy solution.
>
Just comment out the block; easy with any reasonably
intelligent editor.

Peter Ehlers

> Thanks.
>
> On Wed, Dec 1, 2010 at 6:31 PM, Sarah Goslee<sarah.goslee at gmail.com>  wrote:
>
>> It would help if you told us what you wanted this function to do,
>> and provided an example. Not everyone speaks Perl.
>>
>> Sarah
>>
>> On Wed, Dec 1, 2010 at 6:10 PM, Jonathan Flowers
>> <jonathanmflowers at gmail.com>  wrote:
>>> Does anyone know of a command in R that is equivalent to the =cut
>> function
>>> in Perl?
>>>
>>> Thanks.
>>>
>>> Jonathan
>>>
>>
>> --
>> Sarah Goslee
>> http://www.functionaldiversity.org
>>
>
> 	[[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.



More information about the R-help mailing list