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

Drop zero-variance columns from PCA #130

Closed
wants to merge 7 commits into from

Conversation

@stephlocke
Copy link

@stephlocke stephlocke commented Nov 3, 2019

I was encountering errors around d3 (#116 ) and the PCA erroring on the nycflight13 data which I tend to use as a more realistic example in my classes.

Makes d3 script inclusion dynamic

This will enable a workaround for the current pandoc conversion issue by excluding the script from the Rmd if the d3 plot is set to not render. This doesn't fix the full issue but offers a workaround.

create_report(flights,
  config = configure_report(
    add_plot_str = FALSE
  ))

Drop zero-var columns from PCA

DataExplorer was producing a hard to diagnose error when there were columns with zero variance (e.g. nycflights13::flights$year). This change drops any zero variance columns from being included in the PCA analysis.

stephlocke added 2 commits Nov 3, 2019
This will enable a workaround for the current pandoc conversion issue by excluding the script from the Rmd if the d3 plot is set to not render.

```
create_report(flights,
  config = configure_report(
    add_plot_str = FALSE
  ))
```
DataExplorer was yieldy a hard to diagnose error when there was columns with zero variance (e.g. nycflights13::flights$year). This change drops any zero variance columns from being included in the PCA analysis.
stephlocke added 5 commits Nov 3, 2019
@boxuancui
Copy link
Owner

@boxuancui boxuancui commented Nov 4, 2019

Thank you for doing this! It is really helpful! I will merge this whenever I have time (unit tests, etc.).

@boxuancui boxuancui self-assigned this Nov 10, 2019
@boxuancui boxuancui added the type: bug label Nov 10, 2019
@boxuancui boxuancui added this to the v0.9.0 milestone Nov 10, 2019
@boxuancui boxuancui changed the title Handle blocking errors Drop zero-variance columns from PCA Nov 11, 2019
boxuancui added a commit that referenced this pull request Nov 11, 2019
@boxuancui
Copy link
Owner

@boxuancui boxuancui commented Nov 11, 2019

Fixed #116 and added zero-variance handling. Closing PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.