To follow up, strapply has been added to the
gsubfn package (gsubfn 0.1-1) which should make it
easier to address this problem.
Its basically just a sapply call around gsubfn which
returns the transformed matches rather than performing
substitution. Its analogous to apply:
apply(object,
Hi.
I'm trying to find a systematic way to prevent assignment to names of
existing functions. I've tried reassigning to the assignment operator,
with mixed results. The function definition for "<-" below works as
hoped for the demonstrated assignments to a and c. However, for the
assignment
On Thu, 6 Apr 2006, Tim Bergsma wrote:
> Hi.
>
> I'm trying to find a systematic way to prevent assignment to names of
> existing functions. I've tried reassigning to the assignment operator,
> with mixed results. The function definition for "<-" below works as
> hoped for the demonstrated assig
Tim Bergsma <[EMAIL PROTECTED]> writes:
> Hi.
>
> I'm trying to find a systematic way to prevent assignment to names of
> existing functions.
An alternative would be to put your functions into an R package with a
namespace. Then you won't be able to overwrite them (easily).
+ seth
___
On 4/6/06, Seth Falcon <[EMAIL PROTECTED]> wrote:
> Tim Bergsma <[EMAIL PROTECTED]> writes:
>
> > Hi.
> >
> > I'm trying to find a systematic way to prevent assignment to names of
> > existing functions.
>
> An alternative would be to put your functions into an R package with a
> namespace. Then y
Hi, people. ?write shows the following contents in Examples section:
# create a 2 by 5 matrix
x <- matrix(1:10,ncol=5)
# the file data contains x, two rows, five cols
# 1 3 5 6 9 will form the first row
write(t(x))
On the next to last line, "6" should be replaced by "7"
Hello,
we had a quick exchange some time ago about putting
DESTDIR support in R-Project.
DESTDIR is not meant for run-time relocation, but for
staged installation.
An already configured package can be installed to a
temporary destination, with all information,
hard-coded paths, or even run-time r