briatte / briatte/ggnetwork

Extra dim/dimnames attributes in columns of fortify.network output

Open
#29 0 comments 0 reactions 1 assignee Claimed by @briatte View on GitHub
bug
Dominant language
HTML
Stars
154
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Hello,

at least in the CRAN version, the data.frame produced by `fortify.network` has `"dim"` and `"dimnames"` attributes set for columns `x, y, xend, yend`. This is an issue for `dplyr::filter`, which complains that the columns are not one-dimensional vectors. A simple turnaround that I use is to first call:
`as.data.frame(lapply(X=df, FUN=as.vector))`
on the output (here named `df`).

Given the increasing popularity of `dplyr` and other `tidyverse` packages, I was wondering if there is a compelling reason to keep these extra attributes in the output?

Thanks a lot for an otherwise excellent package!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.