Re: [R] stupid R tricks

2010-11-21 Thread Carlos J. Gil Bellosta
On 11/07/2010 08:06 PM, David Winsemius wrote: On Nov 7, 2010, at 12:25 PM, David Winsemius wrote: On Nov 7, 2010, at 11:40 AM, Carl Witthoft wrote: Hi all, Just thought I'd post this (maybe) helpful tool I wrote. For people like me who are bad at keeping a clean environment, it's a time-sa

Re: [R] stupid R tricks

2010-11-07 Thread Henrique Dallazuanna
See 'mode' argument in ls.str function. On Sun, Nov 7, 2010 at 2:40 PM, Carl Witthoft wrote: > Hi all, > Just thought I'd post this (maybe) helpful tool I wrote. For people like > me who are bad at keeping a clean environment, it's a time-saver. > > #simple command to get only one type of objec

Re: [R] stupid R tricks

2010-11-07 Thread David Winsemius
On Nov 7, 2010, at 12:25 PM, David Winsemius wrote: On Nov 7, 2010, at 11:40 AM, Carl Witthoft wrote: Hi all, Just thought I'd post this (maybe) helpful tool I wrote. For people like me who are bad at keeping a clean environment, it's a time-saver. #simple command to get only one type

Re: [R] stupid R tricks

2010-11-07 Thread David Winsemius
On Nov 7, 2010, at 11:40 AM, Carl Witthoft wrote: Hi all, Just thought I'd post this (maybe) helpful tool I wrote. For people like me who are bad at keeping a clean environment, it's a time-saver. #simple command to get only one type of object in current environment lstype<-function(type='

[R] stupid R tricks

2010-11-07 Thread Carl Witthoft
Hi all, Just thought I'd post this (maybe) helpful tool I wrote. For people like me who are bad at keeping a clean environment, it's a time-saver. #simple command to get only one type of object in current environment lstype<-function(type='closure'){ inlist<-ls(.GlobalEnv) if (