#three time series
#climate and ndvi in Fagus sylvatica stands in Spain, Germany, and Sweden
tsl <- tsl_initialize(
x = fagus_dynamics,
name_column = "name",
time_column = "time"
)
#dissimilarity analysis with four combinations of parameters
df <- distantia(
tsl = tsl,
distance = c(
"euclidean",
"manhattan"
),
lock_step = c(
TRUE,
FALSE
)
)
#split by combinations of parameters
df_split <- utils_distantia_df_split(
df = df
)
#print output
df_split
#class and length of the output
class(df_split)
length(df_split)
Run the code above in your browser using DataLab