dtw_distance: Compute the DTW distance using the dtwcluster R package &...

View source: R/dtw_distance.R

dtw_distanceR Documentation

Compute the DTW distance using the dtwcluster R package & compute features

Description

Compute DTW distance using the dtw_basic function from dtwcluster R package and multi-dimensional scaling on the obtained distance to get features for ML analyses

Usage

dtw_distance(daily_weather_data, ...)

Arguments

a

list of data.frame with the following columns extracted from NASA POWER data, according to requested parameters:

  1. longitude numeric

  2. latitude numeric

  3. YEAR numeric

  4. MM integer

  5. DD integer

  6. DOY integer

  7. YYYYMMDD Date

  8. RH2M numeric

  9. T2M numeric

  10. T2M_MIN numeric

  11. T2M_MAX numeric

  12. PRECTOTCORR numeric

  13. ALLSKY_SFC_SW_DWN numeric

  14. T2MDEW numeric

  15. IDenv character ID environment for which weather data were downloaded.

  16. length.gs difftime length in days of the growing season for the environment.

Value

a data.frame data.frame with the results from the multi dimensional scaling analysis.

Author(s)

Cathy C. Westhues cathy.jubin@hotmail.com


cjubin/learnMET documentation built on Nov. 4, 2024, 6:23 p.m.