011 14:28
> To: Nick Sabbe
> Cc: r-help@r-project.org
> Subject: Re: [R] programming: telling a function where to look for the
> entered variables
>
> Thanks Nick and Juan for your replies.
>
> Nick, thanks for pointing out the warning in subset(). I'm not sure
> th
nk: http://biomath.ugent.be
wink: A1.056, Coupure Links 653, 9000 Gent
ring: 09/264.59.36
-- Do Not Disapprove
-Original Message-
From: irene.p...@googlemail.com [mailto:irene.p...@googlemail.com] On Behalf
Of E Hofstadler
Sent: vrijdag 1 april 2011 14:28
To: Nick Sabbe
Cc: r-help@r-pro
Thanks Nick and Juan for your replies.
Nick, thanks for pointing out the warning in subset(). I'm not sure
though I understand the example you provided -- because despite using
subset() rather than bracket notation, the original function (myfunct)
does what is expected of it. The problem I have is
See the warning in ?subset.
Passing the column name of lvar is not the same as passing the 'contextual
column' (as I coin it in these circumstances).
You can solve it by indeed using [] instead.
For my own comfort, here is the relevant line from your original function:
Data.tmp <- subset(Fulldf, l
4 matches
Mail list logo