시작하기무료로 시작하기

Hierarchical clustering with results

In this exercise, you will create your first hierarchical clustering model using the hclust() function.

We have created some data that has two dimensions and placed it in a variable called x. Your task is to create a hierarchical clustering model of x. Remember from the video that the first step to hierarchical clustering is determining the similarity between observations, which you will do with the dist() function.

You will look at the structure of the resulting model using the summary() function.

이 연습은 강의의 일부입니다

Unsupervised Learning in R

강의 보기

연습 안내

  • Fit a hierarchical clustering model to x using the hclust() function. Store the result in hclust.out.
  • Inspect the result with the summary() function.

실습형 인터랙티브 연습

이 예제를 이 샘플 코드를 완성하여 풀어보세요.

# Create hierarchical clustering model: hclust.out
hclust.out <- ___

# Inspect the result
코드 편집 및 실행