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

Removing spaces from transformed variable names #650

Closed
BobMuenchen opened this issue Jan 7, 2019 · 2 comments
Closed

Removing spaces from transformed variable names #650

BobMuenchen opened this issue Jan 7, 2019 · 2 comments

Comments

@BobMuenchen
Copy link

Currently, the default variable names on transformed variables are to append the original names with a space, a dash, another space, and the function name. Since spaces are not allowed in the variable names of most other stat packages, data exported to will be renamed to something like V1, V2... Removing the spaces around the dash would be an easy way to fix this problem.

@jonathon-love
Copy link
Member

if you specify a transform suffix that begins with an underscore, it will get rid of the spaces. i.e.

the suffix T1 results in V1 - T1, but _T1 will result in V1_T1

on the whole, we try and be 'human friendly' first, and 'programming friendly' second (where as a lot of stats programs are the other way around), which is why we've elected for spaces.

cheers

@BobMuenchen
Copy link
Author

Nice solution, thanks!

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