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
As the title specifies it appears that aliases returns as "total" for all NumericVariable type questions.
Here's a complete, but simple example:
library(crunch)
# ds <- newExampleDataset()
ds <- loadDataset("Example dataset")
multitable <- newMultitable("~ `allpets`", ds)
r <- tabBook(multitable, dataset = ds[c("ndogs")])
aliases(r)
[1] "total"
# should be ndogs
In the example above the alias is not "total", it should be "ndogs"
The text was updated successfully, but these errors were encountered:
1beb
changed the title
TabBookResult returns aliases as "total" for all NumericVariable type questions
TabBookResult returns aliases and name as "total" for all NumericVariable type questions
Oct 5, 2020
Hey, I was able to trace this back to backend behavior. There are reasons that it works this way, but people agreed that it should be fixed, hopefully as we pay more attention to numeric variables with the incoming numeric arrays.
As a work-around, the "name" of the variable is included on the analysis page, so you can match it to the names of the dataset like so, to get back the aliases:
As the title specifies it appears that aliases returns as "total" for all NumericVariable type questions.
Here's a complete, but simple example:
In the example above the alias is not "total", it should be "ndogs"
The text was updated successfully, but these errors were encountered: