Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potentially misleading error about duplicate cells #11

Open
kwstat opened this issue Feb 1, 2024 · 0 comments
Open

Potentially misleading error about duplicate cells #11

kwstat opened this issue Feb 1, 2024 · 0 comments

Comments

@kwstat
Copy link
Owner

kwstat commented Feb 1, 2024

The first desplot complains about multiple data for each x/y/panel.
The second desplot does not.
I suspect the check for multiple cells is not able to handle two terms in year*site.

  library(agridat)
  data(tesfaye.millet)
  dat <- tesfaye.millet

  libs(desplot)
  dat <- transform(dat, year=factor(year), site=factor(site))
  desplot(dat, yield ~ col*row|year*site, out1=rep, main="tesfaye.millet")
# Warning message:
# In desplot(dat, yield ~ col * row | year * site, out1 = rep, main = "tesfaye.millet") :
# There are multiple data for each x/y/panel combination

  libs(dplyr,asreml,lucid)
  dat <- mutate(dat,
                env=factor(paste0(site,year)),
                gen=factor(gen),
                rep=factor(rep),
                xfac=factor(col), yfac=factor(row))
  desplot(dat, yield~col*row|env)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant