Learn R Programming

fsbrain (version 0.4.2)

limit_fun_na_inside: Get data limiting function, setting values inside range to NA.

Description

Get data limiting function to use in rglactions as 'trans_fun' to transform data.

Usage

limit_fun_na_inside(vmin, vmax)

Arguments

vmin

numerical scalar, the lower border. Data values between this and vmax will be set to `NA` in the return value.

vmax

numerical scalar, the upper border. See 'vmin'.

Value

a function that takes as argument the data, and clips it to the requested range. I.e., values inside the range will be set to `NA`. Designed to be used as rglactions$trans_fun in vis functions.

See Also

limit_fun_na which will set the values outside the range to `NA`.

Examples

Run this code
# NOT RUN {
   rglactions = list("trans_fun"=limit_fun_na_inside(2,3));

# }

Run the code above in your browser using DataLab