learning how to apply the function to
global environment though. You were certainly helpful there.
From: michael.weyla...@gmail.com
Date: Sat, 27 Aug 2011 12:01:02 -0400
Subject: Re: [R] Make a function work on an environemnt
To: tyler_rin...@hotmail.com
CC: r-help@r-project.org
Well, here'
Michael, Thank you for that information. It was very insightful. Anyone
else with why my second attempt does not work (using eapply)? ThanksTylerFrom:
michael.weyla...@gmail.com
Date: Sat, 27 Aug 2011 12:01:02 -0400
Subject: Re: [R] Make a function work on an environemnt
To: tyler_rin
Well, here's one way you could do it:
# Don't run this unless you really mean it
clear <- function(){rm(list=ls(.GlobalEnv), envir = .GlobalEnv)}
Both calls to .GlobalEnv seem necessary so that both rm() and ls() go
everywhere with it. However, this certainly isn't the most useful code
because it
A previous attempt at this question resulted in the message running together,
making the message difficult to read and the code lines hard to distinquinsh.
In my R learning I've come across a situation in which a piece of code that
works on the work space outside a function does not work inside
4 matches
Mail list logo