Learn R Programming

dendroTools (version 1.0.0)

count_ones: count_ones

Description

calculates share of integer 1 in a vector

Usage

count_ones(vector)

Arguments

vector

a vector of integers

Value

an integer of counted ones

Examples

Run this code
# NOT RUN {
vector_1 <- seq(1:10)
count_ones(vector_1)
# }

Run the code above in your browser using DataLab