I'm successfully using the boxplot
function to generate... boxplots. Now I need to generate tables containing the stats that boxplot
calculates in order to create plots.
I do this by using the plot=FALSE
option.
The problem is that this produces data in a rather bizarre format that I simply can't do anything with. Here's an example:
structure(list(stats = structure(c(178.998262143545, 182.227431564442,
202.108456373209, 220.375358994654, 221.990406228232, 216.59986775699,
217.054997032148, 228.509462713206, 267.070720949859, 284.832378859975,
189.864120937198, 201.876421960518, 219.525439081472, 234.260088973545,
279.343359793024, 209.472617639903, 209.526516071858, 214.785213079737,
230.027361556731, 240.0647114578, 202.057148813419, 207.375619207685,
220.093663781351, 226.246698737471, 240.343646265795), .Dim = c(5L,
5L)), n = c(4, 6, 8, 4, 8), conf = structure(c(171.971593703341,
232.245319043076, 196.247705331772, 260.771220094641, 201.435457751239,
237.615420411705, 198.589545146688, 230.980881012787, 209.552007821332,
230.635319741371), .Dim = c(2L, 5L)), out = numeric(0), group = numeric(0),
names = c("U", "UM", "M", "LM", "L")), .Names = c("stats", "n", "conf", "out", "group",
"names"))
What I want is a table for each of the stats -- min, max, median and the quartiles -- and their values for each group (the ones in "names").
Could somebody give me a hand with this? I'm very much an R beginner.
Thanks in advance!
See Question&Answers more detail:
os