digitscount: count the numbers of the first digits of numeric vector data

Description Usage Arguments Value Examples

Description

count the numbers of the first digits(0 excluded) of numeric vector data

Usage

1

Arguments

v

a numerical vector

Value

A length 9 vector with ith component represents the number of first digits to be i in the input vector v.

Examples

1
2
v<-c(0,0,0,1.2,265.7,345.6,78,89,-91,-90.9,0.1,-0.02)
digitscount(v)

kbroman/xiuyuma documentation built on May 20, 2019, 8:15 a.m.