Closed catherinecthomas closed 5 years ago
Hi @catherinecthomas, I'll post an update tonight! Thanks for raising this issue.
@vikjam Thanks very much! Much appreciated that this package exists for R, and this functionality of having multiple of each variable type would make it even more useful.
Hi @catherinecthomas, I fixed a bug that prevented a list of variables being provided as an argument for t1vars
, t2vars
, t3vars
and updated the examples page. Thanks for raising this issue!
Hi @vikjam thank you for providing this update! I just tried to run it after reinstalling the bcstatsR package. I had a line t1vars = c("marital", "age"),
... but got this error message:
Error in aggregate.data.frame(as.data.frame(x), ...) :
no rows to aggregate.
Thoughts?
Hi @catherinecthomas, could you try to run this example to see if it works for you?
library(bcstatsR)
data(survey, bc)
result.mv <- bcstats(surveydata = survey,
bcdata = bc,
id = "id",
t1vars = c("gender", "gameresult"),
t3vars = "itemssold",
enumerator = "enum",
enumteam = "enumteam",
backchecker = "bcer",
exclude = list(itemssold = c(0)))
Also, can you double-check the version is bcstatsR version 0.0.0.9010
?
This works! Fantastic. Thanks so much!
@vikjam Is there a way to add multiple Type 1/2/3 variables? In the examples I only see 1 variable for each, and I'm not sure what other type of object "t1vars" would take than individual variable names.