Hi,
I want to find probably deprecated function unrowname() from plyr package. How can I do it fast without downloading many old versions of plyr and manually searching for it ?
I am reading this:
https://stackoverflow.com/questions/2714851/as-data-frame-of-table-to-summarize-frequencies
I have found ninteraction() function which is used inside that code:
tab <- function(df, drop = TRUE) {
id <- plyr::ninteraction(df)
ord <- order(id)
df <- df[ord, , drop = FALSE]
id <- id[ord]
freq <- rle(id)$lengths
labels <- unrowname(df[cumsum(freq), , drop = FALSE])
data.frame(labels, freq)
}
but another one called unrowname() is needed. I can't find it so far. Any thoughts would be much appreciated, thank you.