Skip to content

Conversation

@JustinCCYap
Copy link
Contributor

No description provided.

@JustinCCYap JustinCCYap marked this pull request as draft May 8, 2025 05:26
Comment on lines +142 to +148
if (input.is.data.frame) {
x2 <- as.matrix(x)
mostattributes(x2) <- c(attributes(x2)[isBasicAttribute(names(attributes(x2)))],
attributes(x)[!isBasicAttribute(names(attributes(x)))])
}
else
x2 <- x
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't quite understand this.

Copy link
Contributor Author

@JustinCCYap JustinCCYap May 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is to pass a matrix with the same dimensions and attributes as the data frame to updateTableAttributes, so that existing code works to modify the attributes.

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.

3 participants