Re: [R] Emacs keystroke to toggle T/F for setting logical values

From: Vincent Goulet <vincent.goulet_at_act.ulaval.ca>
Date: Tue 08 Mar 2005 - 04:39:21 EST

Le 5 Mars 2005 08:54, Adaikalavan Ramasamy a écrit :
> Not answering your question here directly but here is an alternative.
> Interactive search and replace TRUE for FALSE with M-% after
> highlighting the region that you are interested in. And then repeat for
> changing FALSE to TRUE.

... and end up with TRUEs only! If you want to go along that route, you'll have to convert the original TRUE values to some intermediate string first.

Regards, Vincent

> You can bind some function keys in your configuration file to simplify
> this a bit.
>
> Regards, Adai
>
> On Fri, 2005-03-04 at 16:58 -0800, Waichler, Scott R wrote:
> > I'd like to have an Emacs keystroke that would let me toggle between T
> > and F when editing logical settings in R code. I looked in the ESS
> > documentation and in my O'Reilly emacs books but found nothing. Any
> > ideas?
> >
> > Scott Waichler
> > Pacific Northwest National Laboratory
> > scott.waichler@pnl.gov
> >
> > ______________________________________________
> > R-help@stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
> > http://www.R-project.org/posting-guide.html
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html

-- 
  Vincent Goulet, Professeur agrégé
  École d'actuariat
  Université Laval, Québec 
  Vincent.Goulet_at_act.ulaval.ca   http://vgoulet.act.ulaval.ca

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Tue Mar 08 04:49:47 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:41 EST