Skip to content

Keep the upper/lower case in data names #133

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

Open
FelicienLL opened this issue Jun 24, 2022 · 0 comments
Open

Keep the upper/lower case in data names #133

FelicienLL opened this issue Jun 24, 2022 · 0 comments
Labels
enhancement New feature or request maybe Still weighting pros and cons

Comments

@FelicienLL
Copy link
Owner

FelicienLL commented Jun 24, 2022

If a dataset is passed with upper case letters, mapbayr will return lower case, which can be confusing

library(mapbayr)
mod <- exmodel(add_exdata = F)
dat <- exdata()
names(dat) <- toupper(names(dat))
names(dat)
#> [1] "ID"   "TIME" "EVID" "AMT"  "CMT"  "II"   "ADDL" "MDV"  "DV"
est <- mapbayest(mod, dat)
names(get_data(est))
#> [1] "ID"   "time" "evid" "amt"  "cmt"  "ii"   "addl" "mdv"  "DV"
names(as.data.frame(est))[1:9]
#> [1] "ID"   "time" "evid" "amt"  "cmt"  "ii"   "addl" "mdv"  "DV"

Created on 2022-06-24 by the reprex package (v2.0.1)

@FelicienLL FelicienLL added the enhancement New feature or request label Jun 24, 2022
@FelicienLL FelicienLL added the maybe Still weighting pros and cons label Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request maybe Still weighting pros and cons
Projects
None yet
Development

No branches or pull requests

1 participant