count_ones: count_ones

Description Usage Arguments Value Examples

Description

calculates share of integer 1 in a vector

Usage

1

Arguments

vector

a vector of integers

Value

an integer of counted ones

Examples

1
2
vector_1 <- seq(1:10)
count_ones(vector_1)

jernejjevsenak/dendroTools documentation built on June 5, 2019, 4:06 a.m.