Re: [R] Perl cut equivalent in R

2010-12-10 Thread Martin Maechler
SL == Steve Lianoglou mailinglist.honey...@gmail.com on Mon, 6 Dec 2010 14:21:59 -0500 writes: if(FALSE) { stuff your don't want executed          } Switching a block of code off/on with editing a single character may be done using 0/1 instead of FALSE/TRUE. SL

Re: [R] Perl cut equivalent in R

2010-12-10 Thread William Dunlap
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Martin Maechler Sent: Friday, December 10, 2010 8:54 AM To: Steve Lianoglou Cc: r-help@r-project.org Subject: Re: [R] Perl cut equivalent in R SL == Steve Lianoglou

Re: [R] Perl cut equivalent in R

2010-12-10 Thread Duncan Murdoch
cut equivalent in R SL == Steve Lianogloumailinglist.honey...@gmail.com on Mon, 6 Dec 2010 14:21:59 -0500 writes: if(FALSE) { stuff your don't want executed } Switching a block of code off/on with editing a single character may be done using 0

Re: [R] Perl cut equivalent in R

2010-12-06 Thread Steve Lianoglou
if(FALSE) { stuff your don't want executed          } Switching a block of code off/on with editing a single character may be done using 0/1 instead of FALSE/TRUE. Or even F/T -- Steve Lianoglou Graduate Student: Computational Systems Biology  | Memorial Sloan-Kettering Cancer Center  |

[R] Perl cut equivalent in R

2010-12-01 Thread Jonathan Flowers
Does anyone know of a command in R that is equivalent to the =cut function in Perl? Thanks. Jonathan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] Perl cut equivalent in R

2010-12-01 Thread Sarah Goslee
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 jonathanmflow...@gmail.com wrote: Does anyone know of a command in R that is equivalent to the =cut function in Perl?

Re: [R] Perl cut equivalent in R

2010-12-01 Thread Jonathan Flowers
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,

Re: [R] Perl cut equivalent in R

2010-12-01 Thread David Winsemius
On Dec 1, 2010, at 6:59 PM, 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

Re: [R] Perl cut equivalent in R

2010-12-01 Thread Peter Ehlers
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.

Re: [R] Perl cut equivalent in R

2010-12-01 Thread Petr Savicky
On Wed, Dec 01, 2010 at 07:12:37PM -0500, David Winsemius wrote: ... One of the workarounds... the one I remember anyway... has been to insert: if(FALSE) { stuff your don't want executed } Switching a block of code off/on with editing a single character may be done using 0/1