Generate Perturbations Around a Point of Interest
Usage
generate_perturbations(
data,
poi,
radius = 0.1,
step = 0.01,
predictors = names(poi)
)Value
A data frame of perturbed points. The output contains the following properties:
Columns are predictors
Number of rows are going to be dependent on
radiusandstep
Examples
data <- data.frame(
x = 1,
y = 2
)
result <- generate_perturbations(
data,
poi = data[1,],
radius = 0.1,
step = 0.1,
predictors = c("x", "y")
)