stats: Calculate simple statistics of column

Description Usage Arguments

Description

Methods for calculating simple statistics of columns of a file: mean, sum, standard deviation, range (min and max), and number of missing values.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
colsum(x, ...)

## S4 method for signature 'laf'
colsum(x, columns, na.rm = TRUE, ...)

## S4 method for signature 'laf_column'
colsum(x, na.rm = TRUE, ...)

colmean(x, ...)

## S4 method for signature 'laf'
colmean(x, columns, na.rm = TRUE, ...)

## S4 method for signature 'laf_column'
colmean(x, na.rm = TRUE, ...)

colfreq(x, ...)

## S4 method for signature 'laf'
colfreq(x, columns, useNA = c("ifany", "always", "no"), ...)

## S4 method for signature 'laf_column'
colfreq(x, na.rm = TRUE, ...)

colrange(x, ...)

## S4 method for signature 'laf'
colrange(x, columns, na.rm = TRUE, ...)

## S4 method for signature 'laf_column'
colrange(x, na.rm = TRUE, ...)

colnmissing(x, ...)

## S4 method for signature 'laf'
colnmissing(x, columns, na.rm = TRUE, ...)

## S4 method for signature 'laf_column'
colnmissing(x, na.rm = TRUE, ...)

Arguments

x

an object of type laf or laf_column.

...

Currently ignored.

columns

a numeric vector with the columns for which the statistics should be calculated.

na.rm

whether or not to ignore missing values. By default missing values are ignored.

useNA

method with which to treat missing values: "ifany" adds a field containing the number of missing values if there are any; "always" will always add a field with the number of missing values even when there are none; "none" will never add a field containing the number of missing values.


LaF documentation built on March 26, 2020, 6:59 p.m.