Description Usage Arguments Examples
compute distances and groups from algorithm based on raw distributions
1 | clust_gran(dist, kopt = NULL, method = "ward.D")
|
dist |
a dissimilarity structure as produced by dist. |
kopt |
the number of clusters |
method |
method in stats::hclust() |
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(gravitas)
library(tidyverse)
library(tsibble)
sm <- smart_meter10 %>%
filter(customer_id %in% c("10006704", "10017936","10006414", "10018250"))
gran1 = "hour_day"
gran2 = NULL
response = "general_supply_kwh"
sm %>% scale_gran(method = "robust") %>% dist_gran(gran1 = "hour_day")%>%
clust_gran("hour_day")
sm %>% scale_gran(method = "nqt") %>% dist_gran(gran1 = "hour_day")%>%
clust_gran()
dist_wpd(sm, harmony_tbl = h)) %>% clust_gran()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.