Thank you hugely. Your suggestion nailed it. I was *sure* that I
had tried doing
environment(bar) <- new.env()
prior to doing the assignment and that it didn't help. I was also sure
that in AssetPricing I done assignments into environments that *weren't*
new. Wrong on both counts. :-(
On 07/08/2018 07:23 PM, Duncan Murdoch wrote:
On 08/07/2018 6:57 PM, Rolf Turner wrote:
Recently I experimented with assigning a variable within the environment
of a function in a package that I am developing. Slightly more
explicitly:
In a function "foo()" in the package, I have lines l
On 08/07/2018 6:57 PM, Rolf Turner wrote:
Recently I experimented with assigning a variable within the environment
of a function in a package that I am developing. Slightly more explicitly:
In a function "foo()" in the package, I have lines like:
big <- 42
assign("big",big,envir=env
Recently I experimented with assigning a variable within the environment
of a function in a package that I am developing. Slightly more explicitly:
In a function "foo()" in the package, I have lines like:
big <- 42
assign("big",big,envir=environment(bar))
where "bar()" is another fun
I spoke too soon. The problem isn't that I don't know how to get the
subset argument. I am just calling glm (via eval) with (mostly) the
same arguments as the call to my function, so subset is (if not
missing) an argument to my function too. So I can just use it.
The problem is that I then want
If there might be NA's in the response or predictors so na.exclude or
na.omit would remove
some rows as well, then using the row.names might be an easier way to match
up rows in
the original data with rows in gout$x.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Sun, Jul 8, 2018 at 11:04 AM, Ch
I think your second option sounds better because this is all happening
inside one function I'm writing so users won't be able mess with the glm
object. Many thanks.
On Sun, Jul 8, 2018, 12:10 PM Duncan Murdoch
wrote:
> On 08/07/2018 11:48 AM, Charles Geyer wrote:
> > I need to find out from an o
On 08/07/2018 11:48 AM, Charles Geyer wrote:
I need to find out from an object returned by R function glm with argument
x = TRUE
what the subsetting was. It appears that if gout is that object, then
as.integer(rownames(gout$x))
is a subset vector equivalent to the one actually used.
You don'
I need to find out from an object returned by R function glm with argument
x = TRUE
what the subsetting was. It appears that if gout is that object, then
as.integer(rownames(gout$x))
is a subset vector equivalent to the one actually used.
I do also have the call to glm (as a call object) so can
Dear all
I recently submitted an R package to CRAN which was accepted. However, the
package is failing additional tests, i.e., it fails to install on Solaris
and also produces a clang-UBSAN issue. These can be seen here
https://cran.r-project.org/web/checks/check_results_sundialr.html
I tried to
10 matches
Mail list logo