freqweights-package: Working with frequency tables

Description Details Author(s) Examples

Description

The frequency of a particular data value is the number of times it occurs. A frequency table is a table of values with their corresponding frequencies. Frequency weights are integer numbers that indicate how many cases each case represents. This package provides some functions to work with such type of collected data.

Details

Package: freqweights
Type: Package
Version: 0.1.0
Date: 2014-05-20
License: GPL 3.0

Author(s)

Emilio Torres-Manzanera

Maintainer: Emilio Torres-Manzanera <torres@uniovi.es>

Examples

1
2
3
tablefreq(iris)
lmfreq(Sepal.Length ~ Petal.Length, tablefreq(iris))
hclustvfreq(tablefreq(iris[,1:4]))

Example output

# A tibble: 149 x 6
   Sepal.Length Sepal.Width Petal.Length Petal.Width Species  freq
          <dbl>       <dbl>        <dbl>       <dbl> <fct>   <int>
 1          4.3         3            1.1         0.1 setosa      1
 2          4.4         2.9          1.4         0.2 setosa      1
 3          4.4         3            1.3         0.2 setosa      1
 4          4.4         3.2          1.3         0.2 setosa      1
 5          4.5         2.3          1.3         0.3 setosa      1
 6          4.6         3.1          1.5         0.2 setosa      1
 7          4.6         3.2          1.4         0.2 setosa      1
 8          4.6         3.4          1.4         0.3 setosa      1
 9          4.6         3.6          1           0.2 setosa      1
10          4.7         3.2          1.3         0.2 setosa      1
# ... with 139 more rows

Call:
lmfreq(formula = Sepal.Length ~ Petal.Length, data = tablefreq(iris))

Call:
hclust.vector(X = tfq[, -ncol(tfq), drop = FALSE], method = method,     members = unlist(tfq[, ncol(tfq)]), metric = metric, p = p)

Cluster method   : single 
Distance         : euclidean 
Number of objects: 149 

freqweights documentation built on May 29, 2017, 12:01 p.m.