Description Usage Arguments S3 methods Examples
This object managed the properties of condensed (summarised) data frames.
1 2 3 4 5 | condensed(groups, grouped, summary)
is.condensed(x)
as.condensed(x)
|
groups |
list of |
grouped,summary |
output from C++ condense function |
x |
object to test or coerce |
Mathematical functions with methods for binsum
object will modify
the x column of the data frame and rebin
the data, calculating
updated summary statistics.
Currently methods are provided for the Math
group generic,
logical comparison and arithmetic operators, and
round_any
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | if (require("ggplot2")) {
x <- rchallenge(1e4)
xsum <- condense(bin(x, 1 / 10))
# Basic math operations just modify the first column
autoplot(xsum)
autoplot(xsum * 10)
autoplot(xsum - 30)
autoplot(abs(xsum - 30))
# Similarly, logical operations work on the first col
autoplot(xsum[xsum > 10, ])
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.