get_n: Sample size

Description Usage Arguments Examples

View source: R/get_n.R

Description

Returns the sample size of the data set contained within the distribution object.

Usage

1
get_n(m)

Arguments

m

a distribution object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
################################################
# Load data and create example object
################################################
data(moby_sample)
m = displ$new(moby_sample)
################################################
# get_n and length should return the same value
################################################
get_n(m)
length(moby_sample)

poweRlaw documentation built on April 25, 2020, 9:06 a.m.