R: Stirling2nd function computes the Stirling numbers of the...
Stirling2nd
R Documentation
Stirling2nd function computes the Stirling numbers of the second kind.
Description
This function returns the estimated Stirling numbers of the second kind i.e., the number of ways of partitioning a set of n objects into k nonempty groups.
Usage
Stirling2nd(n,k)
Arguments
n
number of objects.
k
number of groups (i.e. classes).
Value
The Stirling number of the 2nd kind for n elements and k groups or NaN (if the Stirling number for those n and k is greater than 1e300).
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(ClusterStability)
Loading required package: Rcpp
Loading required package: clusterCrit
Loading required package: cluster
Loading required package: copula
Loading required package: WeightedCluster
Loading required package: TraMineR
TraMineR stable version 1.8-12 (Built: 2016-07-02)
Website: http://traminer.unige.ch
Please type 'citation("TraMineR")' for citation information.
This is WeightedCluster stable version 1.2 (Built: 2016-07-02)
To get the manuals, please run:
vignette("WeightedCluster") ## Complete manual in English
vignette("WeightedClusterFR") ## Complete manual in French
vignette("WeightedClusterPreview") ## Short preview in English
To cite WeightedCluster in publications please use:
Studer, Matthias (2013). WeightedCluster Library Manual: A practical guide to
creating typologies of trajectories in the social sciences with R.
LIVES Working Papers, 24. doi: 10.12682/lives.2296-1658.2013.24
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/ClusterStability/Stirling2nd.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Stirling2nd
> ### Title: Stirling2nd function computes the Stirling numbers of the second
> ### kind.
> ### Aliases: Stirling2nd
>
> ### ** Examples
>
> Stirling2nd(n=3,k=2)
[1] 3
> # Expected value=3
> Stirling2nd(n=300,k=20)
[1] NaN
> # Expected value=NaN
>
>
>
>
>
> dev.off()
null device
1
>