freq: Simple Frequency Table

Description Usage Arguments Author(s) See Also

Description

Creates a frequency table or data frame.

Usage

1
2
3
4
5
6
7
8
9
freq(x, weighs = NULL, breaks = graphics::hist(x, plot = FALSE)$breaks,
  digits = 3, include.lowest = TRUE, order = c("desc", "asc", "level",
  "name"), perc = FALSE, useNA = c("no", "ifany", "always"), ...)

## Default S3 method:
freq(x, weighs = NULL, breaks = graphics::hist(x, plot =
  FALSE)$breaks, digits = 3, include.lowest = TRUE, order = c("desc",
  "asc", "level", "name"), perc = FALSE, useNA = c("no", "ifany", "always"),
  ...)

Arguments

x

A vector of values for which the frequency is desired.

weighs

A vector of weights.

breaks

one of: 1) a vector giving the breakpoints between histogram cells; 2) a function to compute the vector of breakpoints; 3) a single number giving the number of cells for the histogram; 4) a character string naming an algorithm to compute the number of cells (see 'Details'); 5) a function to compute the number of cells.

digits

The number of significant digits required.

include.lowest

Logical; if TRUE, an x[i] equal to the breaks value will be included in the first (or last) category or bin.

order

The order method.

perc

logical; if TRUE percents are returned.

useNA

Logical; if TRUE NA's values are included.

...

Additional arguements (currently ignored)

Author(s)

Daniel Marcelino, dmarcelino@live.com.

See Also

Frequency, Crosstable.


SciencesPo documentation built on May 29, 2017, 9:28 p.m.