n_: Count from 'n_' to 'N_'

Description Usage Arguments Details Value Author(s) Examples

View source: R/mStats.R

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

1
2
3

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
x <- n_(iris, Species)
## Not run: 
x
codebook(x)

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

## End(Not run)

mStats documentation built on Nov. 23, 2020, 9:07 a.m.

Related to n_ in mStats...