Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

NOELS

Count Elements


Description

This function returns a numerical array built with the length of each input argument. Input arguments can be numerical or time series. Input arguments can also be string variables.

Usage

NOELS(...)

Arguments

...

List of input arguments. This function accepts input of class numerical, character, or BIMETS time series. character arguments are exclusive: if an argument is of class character, all other arguments must be of class character.

Value

This function returns an array of class c().

See Also

Examples

out_NOELS=NOELS(c(1,2,3,4),c(5,6,7))
	print(out_NOELS) #print c(4,3)
	
	out_NOELS=NOELS(TSERIES(c(1,2,3,4),START=c(2000,1),FREQ=1),c(5,6,7))
	print(out_NOELS) #print c(4,3)
	
	out_NOELS=NOELS('aaa','bb')
	print(out_NOELS) #print c(3,2)

bimets

Time Series and Econometric Modeling

v1.5.3
GPL-3
Authors
Andrea Luciani [aut, cre], Roberto Stok [aut], Bank of Italy [cph]
Initial release
2021-02-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.