export_data: Extract results from the kmeans analysis

Description Usage Arguments

View source: R/kmeans-analysis.R

Description

This function is used to extract the best results from the kmeans analysis. The best result is considered to be the result characterized by the highest Calinski-Harabasz index.

Usage

1
2
3
4
export_data(x, nc_dataframe, final_kmeans_results, filename,
  export_vars = list("lon", "lat", "id_pixel", "gruppo"),
  join_by = c("id_pixel", "lon", "lat"), unique_id = list("lon", "lat",
  "id_pixel"))

Arguments

x

dataframe used in the kmeans analysis (prior to standardization)

nc_dataframe

main dataframe

final_kmeans_results

list of the final results obtained from the function extract_results

filename

name of the .csv file to export

export_vars

variables to export. A list of characters

join_by

variables to join by. A vector of characters

unique_id

a list of unique identifiers


pegoraro/qchlorophyll documentation built on May 24, 2019, 11:46 p.m.