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

Filter doesn t work #216

Closed
aaa34169 opened this Issue Nov 15, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@aaa34169

aaa34169 commented Nov 15, 2016

Hi
I think you had ever faced with this issue with another package.
It s quite simple. the dplyr function Filter seems not working after a read_xls

data = read_excel("name.xlsx", sheet = "Kinematic cycles",col_names = TRUE)
dplyr::filter(data,Label  == "LHipAngles"

Rstudio returns :
Error in filter_impl(.data, dots) : attempt to use zero-length variable name

i haven t found any resource yet.
cheers

Fabien

@hadley hadley added the reprex label Jan 3, 2017

@jennybc

This comment has been minimized.

Member

jennybc commented Jan 5, 2017

re-posting a reprex request, that's specific to this project

How to provide a readxl reprex

We're in a much better position to address your issue if you can provide a reprex (reproducible example). Provide as much of this as you can:

  • An actual xls or xlsx file. Preferably stripped down to the minimal size and complexity to demonstrate your point. And, obviously, stripped of any sensitive data.
  • A small bit of R code that uses readxl on the provided xls or xlsx file and demonstrates your point.
    • Consider using the reprex package to prepare this. In addition to nice formatting, this ensures your reprex is self-contained. Currently GitHub-only, but going to CRAN soon.
  • Any details about your environment that seem clearly relevant, such as operating system.
    reprex(..., si = TRUE)
    will append a standard summary, folded neatly away, at the bottom of your reprex.

How to provide the xls/xlsx file? In order of preference:

  1. Attach the file directly to your issue. Instructions are always at the bottom of the issue or comment box.
  2. Share via DropBox or Google Drive and provide the link in your issue.
  3. Explain you absolutely cannot provide a relevant file via github.com and offer to provide privately.
  4. Don't share a file and realize you're hoping for, e.g., a bug fix with no concrete example to go on.
@jennybc

This comment has been minimized.

Member

jennybc commented Jan 6, 2017

This is likely another symptom of readxl returning a tibble with one or more NA colnames, which is #199.

@jennybc jennybc closed this Jan 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment