normcols {mixstock} | R Documentation

## scale columns to frequencies

### Description

divides each column of a matrix by its sum, reducing sample values to observed frequencies

### Usage

    normcols(z)

### Arguments

`z` | matrix of sampled numbers (integers)

### Value

matrix of frequencies

### Note

This is just a wrapper for `scale(z, center = FALSE, scale = colSums(z))`

[Package mixstock version 0.9.2 Index]