Creating data frame from summary(); Error in dimnames(x) <- dnx : 'dimnames' applied to non-array
Advertisements For the love of me, I don’t understand why this does not work: x = c(3, 5, 3, 100, 5, -9, 10, 24) x_summary <- summary(x) x_names <- names(x_summary) x_summary <- unname(x_summary) xdf <- data.frame(Statistics = x_names, Value = x_summary) I thought the named vector from using summary() was the issue at first. But… Read More Creating data frame from summary(); Error in dimnames(x) <- dnx : 'dimnames' applied to non-array