Learn R Programming

activityCounts (version 0.1.2)

trunc: trunc

Description

trunc

Usage

trunc(data, min_value)

Arguments

data

The input variable which will be altered if less than the threshold

min_value

the threshold which the input below it will be set to zero

Value

returns zero if the "data" is less than the "mean_value" otherwise returns the "data"