n_ {mStats}R Documentation

Count from n_ to N_

Description

n_() generates the current observation number per specified group. It is regarded as grouped serial numbers.

N_() generates total number of observation per group. It is regarded as grouped total number.

Usage

n_(data, ...)

N_(data, ...)

Arguments

data

data.farme

...

variables for grouping

Details

If no variable is set in ..., all variables in the datset is used for grouping.

Value

data.frame

Author(s)

Email: dr.myominnoo@gmail.com

Website: https://myominnoo.github.io/

Examples


x <- n_(iris, Species)
## Not run: 
x
codebook(x)

x <- N_(iris, Species)
x
codebook(x)

## End(Not run)


[Package mStats version 3.4.0 Index]