We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description as.named.vector() on a DF column gives back a vector much longer than the original dimensions
Expected Behavior
Buggy Behavior
> l(as.named.vector(obj@meta.data[ , assignments])) [1] 35860 > dim((obj@meta.data[ , assignments])) [1] 7172 5
Fun
as.named.vector <- function (df_col, WhichDimNames = 1) { namez = dimnames(df_col)[[WhichDimNames]] if (is.list(df_col) & !is.data.frame(df_col)) { namez = names(df_col) } vecc = as.vector(unlist(df_col)) names(vecc) = namez return(vecc) } <bytecode: 0x7fd41b108ba8> <environment: namespace:CodeAndRoll2>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
as.named.vector() on a DF column gives back a vector much longer than the original dimensions
Expected Behavior
Buggy Behavior
Fun
The text was updated successfully, but these errors were encountered: