Re: [R] Perl "cut" equivalent in R

2010-12-10 Thread Duncan Murdoch
> Subject: Re: [R] Perl "cut" equivalent in R > > >>>>> "SL" == Steve Lianoglou > >>>>> on Mon, 6 Dec 2010 14:21:59 -0500 writes: > > >>> if(FALSE) { stuff your don't want executed } >

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" equivalen

Re: [R] Perl "cut" equivalent in R

2010-12-10 Thread Martin Maechler
> "SL" == Steve Lianoglou > 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> Or even

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

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 usin

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 co

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 ski

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 proble

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 wrote: > Does anyone know of a command in R that is equivalent to the =cut function > in Perl? > > Thanks. > > Jonathan > -

[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 post