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

In pivot tables, issue with column names containing dots #81

Closed
dcomtois opened this issue Sep 17, 2018 · 2 comments
Closed

In pivot tables, issue with column names containing dots #81

dcomtois opened this issue Sep 17, 2018 · 2 comments

Comments

@dcomtois
Copy link

First, let me congratulate you for this outstanding application. I'm really impressed!

I noticed that when creating a Pivot which uses a grouping variable having a . in its name, we get an error message.

For instance, if I create a copy of iris$Species called iris$iris.Species :

iris$iris.species <- iris$Species

... I get the following error message when creating the pivot table using iris.Species as grouping variable:

Error: You specified the columns: iris.species, but the column names of the data are iris_species, Sepal_Length

Most likely has to do with the use of fix_names(), which replaces '.' with '_'.

@vnijs
Copy link
Contributor

vnijs commented Sep 17, 2018

Thanks for the compliment and the report @dcomtois. I just pushed a fix which will leave the input variable names unchanged but will "fix" other column names as needed

devtools::install_github("radiant-rstats/radiant.data")

@vnijs
Copy link
Contributor

vnijs commented Sep 23, 2018

Seems to be working fine now @dcomtois. If you have any additional issues please open another. To get the latest version with radiant with the fix (not yet on CRAN) use the commands below:

install.packages("radiant.update", repos = "https://radiant-rstats.github.io/minicran/")
radiant.update::radiant.update()

@vnijs vnijs closed this as completed Sep 23, 2018
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

2 participants