increase_n_data_points | R Documentation |
This function artificially increases the number of data points in a given coordinate data frame. It generates additional points by adding random noise to the existing coordinates, ensuring the new points stay within the original range of the data.
increase_n_data_points(coords_df, fct = 10, cvars = c("x", "y"))
coords_df |
A data frame containing the original coordinates.
Must include columns specified in |
fct |
A numeric factor indicating how many times the number of data points should be increased. The function will round this number up to the nearest integer. |
cvars |
A character vector specifying the column names of the coordinates in |
A data frame with the increased number of data points.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.