f_info: Print basic statistics on vector or data frame with elements

View source: R/f - Info.R

f_infoR Documentation

Print basic statistics on vector or data frame with elements

Description

Print basic statistics on vector of elements or for each feature in a data frame. For each vector (or feature) the function f_vector_info() is called.

Usage

f_info(x, n.top = 10, show.freq = TRUE, n.width = 29, c.sort.by = "frequency")

Arguments

x

Vector or data frame with items to check statistics of.

n.top

Max number of items to show in the list (default: 10).

show.freq

Should frequency be shown? (default: TRUE).

n.width

Number of characters to show in the list (default: 29).

c.sort.by

How to sort the items in the frequency table, by its 'frequency' or 'value' (default: 'frequency').

Details

-

Value

Nothing. Only prints to console.

Author(s)

Pieter Overdevest

Examples

f_info(

      x         = c("A", "B", "C", "A", "B", "A"),
      n.top     = 10,
      show.freq = TRUE,
      c.sort.by = "frequency",
      n.width   = 29
)

pieterov/generaltoolbox documentation built on Jan. 25, 2025, 10:32 a.m.