modulus_35: modulus_35

Description Usage Arguments Value Examples

View source: R/modulus_35.R

Description

Takes in a vector and returns TRUE if an element of the vector is divisible by 3 or 5, and FALSE otherwise.

Usage

1

Arguments

vec

A numerical vector

Value

A boolean vector where the value is TRUE if an element of the original vector is divisible by 3 or 5, and FALSE otherwise.

Examples

1
modulus_35(c(1:10))

Shelmith-Kariuki/rjollof documentation built on Dec. 18, 2021, 1:07 p.m.