Description Usage Arguments Value Note
View source: R/preprocessing.R
Create a single data frame of field attributes from multiple files to use in clustering
1 | make_cluster_data(config, plot = TRUE)
|
config |
list; a named list containing all the needed inputs. The following must be included:
|
plot |
logical; **optional** should a faceted plot of |
An sf data frame containing the requested columns from each file,
named as paste(var_of_interest, file_ids, sep = _)
, aggregated to a common
grid of hexagonal polygons of size harvest_width * cellsize_scaler
,
clipped to the size of the field buffer.
The field buffer is the detected field boundardy, with its simplifiction controlled
by alpha
, minus harvest_width * passes_to_clip
. The value of each
polygon represents the median of the underlying point observations that fell
within each polygon in the grid.
TODO can you pass multiple variable names to var_of_interest? TODO a checking function that makes sure all inputs are correct before loading the files.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.