You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is intended behaviour, as I am using specific names internally to do calculations.
I thought about updating the names internally to use something that is less likely to "collide" with user-defined column names, but I realised this might break a lot of other users' code too – so I'd prefer not changing this.
I have however improved the error messages:
library(rsimsum)
library(dplyr)
#> #> Attaching package: 'dplyr'#> The following objects are masked from 'package:stats':#> #> filter, lag#> The following objects are masked from 'package:base':#> #> intersect, setdiff, setequal, union
data("nlp", package="rsimsum")
# estvarname:rsimsum::simsum(
data= rename(nlp, est=b), estvarname="est", true=0, se="se",
methodvar="model", by= c("baseline", "ss", "esigma")
)
#> Error: 'est' is not an allowed name for 'estvarname'# se:rsimsum::simsum(
data= rename(nlp, est=se), estvarname="b", true=0, se="est",
methodvar="model", by= c("baseline", "ss", "esigma")
)
#> Error: 'est' is not an allowed name for 'se'# methodvar:rsimsum::simsum(
data= rename(nlp, est=model), estvarname="b", true=0, se="se",
methodvar="est", by= c("baseline", "ss", "esigma")
)
#> Error: 'est' is not an allowed name for 'methodvar'# by:rsimsum::simsum(
data= rename(nlp, est=ss), estvarname="b", true=0, se="se",
methodvar="model", by= c("baseline", "est", "esigma")
)
#> Error: 'est' is not an allowed name for 'by'
Describe the bug
estvarname
cannot be called "est". An easy fix is just to call it something else, but am reporting this anyway for completeness!The text was updated successfully, but these errors were encountered: