Skip to content

row names no longer appear after dplyr manipulation #90

@liliansanselme

Description

@liliansanselme

Hello,

Thank you for this useful package!
I have a problem with rownames that disappear when I manipulate the dataframe with dplyr before using d3heatmap. For example, this displays row names correctly:

library(d3heatmap)
url <- "http://datasets.flowingdata.com/ppg2008.csv"
nba_players <- read.csv(url, row.names = 1)
d3heatmap(nba_players, scale = "column")

but this is no longer the case here:

library(d3heatmap)
library(tidyverse)
url <- "http://datasets.flowingdata.com/ppg2008.csv"
nba_players <- filter(read.csv(url, row.names = 1), FGA < 100)
d3heatmap(nba_players, scale = "column")

I think that it is due to the fact that row names are deprecated in tibbles, as discussed here:
tidyverse/tibble#123.
Is there a workaround ?

Thank you for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions