Set values above threshold to NaN

Share:

Description

This function set a values of a vector above a given value to NaN.

Usage

1
qat_analyse_set_nans_above_2d(measurement_vector, nan_above)

Arguments

measurement_vector

The measurement vector, which should be worked on

nan_above

Value, above the values should be replaced by NaN

Details

In the given measurement vector, the values, which are above nan\_above, will be replaced by NaN.

Value

Return a list, which includes the measurement vector with the replaced values.

Author(s)

Andre Duesterhus

See Also

qat_analyse_set_addup_2d, qat_analyse_set_mean_2d, qat_analyse_set_nans_2d, qat_analyse_set_nans_below_2d

Examples

1
2
vec <- array(c(1,2,3,4,5,4,3,2,1), c(3,3))
result <- qat_analyse_set_nans_above_2d(vec, 4)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.