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

unable to use group_by if using label attribute from sas file #57

Closed
johngoldin opened this issue Mar 26, 2015 · 1 comment
Closed

unable to use group_by if using label attribute from sas file #57

johngoldin opened this issue Mar 26, 2015 · 1 comment

Comments

@johngoldin
Copy link

testsas <- group_by(read_sas("http://crn.cancer.gov/resources/ctcodes-procedures.sas7bdat"), code_type)
#   Error: column 'px' of type character has unsupported attributes: label

By using as_factor to change all columns with label attribute I can fix things so that group_by works.

testsas <- read_sas("http://crn.cancer.gov/resources/ctcodes-procedures.sas7bdat")
testsas$px <- as_factor(testsas$px)
testsas$code_type <- as_factor(testsas$code_type)
testsas$description <- as_factor(testsas$description)
testsas$chemo_type <- as_factor(testsas$chemo_type)
testsas$comments <- as_factor(testsas$comments)
group_by(testsas, code_type)
@hadley
Copy link
Member

hadley commented Apr 7, 2015

This is a dplyr problem - will be fixed in next version

@hadley hadley closed this as completed Apr 7, 2015
@lock lock bot locked and limited conversation to collaborators Jun 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants