R/ntypes.R

# Copyright (c) 2015 Santiago Barreda
# All rights reserved.


ntypes = function (vector) length (levels(as.factor(as.character(vector))))

Try the phonTools package in your browser

Any scripts or data that you put into this service are public.

phonTools documentation built on Nov. 21, 2023, 1:07 a.m.