diann-rpackage icon indicating copy to clipboard operation
diann-rpackage copied to clipboard

Fix pivot function

Open npinter opened this issue 1 year ago • 0 comments

When you have a single column data frame, the result of piv[order(rownames(piv)), ] is actually a numeric vector. When a data frame with only one column is subsetted, R will automatically drop the data frame structure and convert it to a vector. Therefore, the rownames are lost.

npinter avatar Jun 29 '23 17:06 npinter