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
-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
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
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
|
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
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?
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,
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
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.
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
10 matches
Mail list logo