loon (version 1.3.3)

measures1d: Closure of One Dimensional Measures

Description

Function creates a 1d measures object that can be used with l_ng_plots and l_ng_ranges.

Usage

measures1d(data, ...)

Arguments

data

a data.frame with the data used to calculate the measures

...

named arguments, name is the function name and argument is the function to calculate the measure for each variable.

Value

a measures object

Details

For more information run: l_help("learn_R_display_graph.html#measures")

See Also

l_ng_plots, l_ng_ranges, measures2d

Examples

Run this code
# NOT RUN {
m1 <- measures1d(oliveAcids, mean=mean, median=median,
     sd=sd, q1=function(x)as.vector(quantile(x, probs=0.25)),
     q3=function(x)as.vector(quantile(x, probs=0.75)))
     
m1
m1()
m1(olive$palmitoleic>100)
m1('data')
m1('measures')
# }

Run the code above in your browser using DataLab