SCM

[#2509] update improperly stores data/subset parameters

Date:
2013-01-30 17:27
Priority:
3
State:
Open
Submitted by:
Oliver Soong (osoong)
Assigned to:
Nobody (None)
Product:
methods for mer objects
Operating System:
None
Component:
R or C functions
Version:
None
Severity:
minor
Resolution:
None
URL:
Summary:
update improperly stores data/subset parameters

Detailed description
R 2.15.2, Windows XP/7 (32-bit), lme4 0.999999.0, Matrix 1.0.9, lattice 0.20.10

require(lme4)
m1 <- lmer(Sepal.Width ~ Sepal.Length + (1 | Species), iris)
m2 <- update(m1, data = iris)
m3 <- update(m2, . ~ .)
m1@call$data
m2@call$data

When defining the update method for mer objects, replace:
extras <- match.call(expand.dots = FALSE)$...

with:
extras <- match.call(call = sys.call(sys.parent()), expand.dots = FALSE)$...

It doesn't do anything obviously different, but...

Comments:

No Comments Have Been Posted

Attached Files:

Changes

No Changes Have Been Made to This Item

Thanks to:
Vienna University of Economics and Business Powered By FusionForge