Learn R Programming

dendroTools (version 1.2.14)

count_ones: count_ones

Description

calculates share of integer 1 in a vector

Usage

count_ones(vector)

Value

an integer of counted ones

Arguments

vector

a vector of integers

Examples

Run this code
vector_1 <- seq(1:10)
# count_ones(vector_1)

Run the code above in your browser using DataLab