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

Update list.R #53

Merged
merged 1 commit into from
Mar 22, 2018
Merged

Update list.R #53

merged 1 commit into from
Mar 22, 2018

Conversation

ramorel
Copy link
Contributor

@ramorel ramorel commented Mar 21, 2018

Revised lines 77-82, replacing single bracket notation to double bracket notation for subsetting columns to accomdate both tibble and data.frame objects. The evaluation is.character(edges[, 1]) for a tibble evaluates the tibble object and not the column. I revised this to is.character(edges[[1]]), which evaluates the column. This works for data.frame and tibble objects. Each case of single bracket notation was replaced with double bracket notation.

Revised lines 77-82, replacing single bracket notation to double bracket notation for subsetting columns to accomdate both `tibble` and `data.frame` objects. The evaluation `is.character(edges[, 1])` for a tibble evaluates the `tibble` object and not the column. I revised this to `is.character(edges[[1]])`, which evaluates the column. This works for `data.frame` and `tibble` objects. Each case of single bracket notation was replaced with double bracket notation.
@thomasp85 thomasp85 merged commit 13a5e4e into thomasp85:master Mar 22, 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

Successfully merging this pull request may close these issues.

None yet

2 participants