PCA using prcomp()
In this exercise, you will create your first PCA model and observe the diagnostic results.
We have loaded the Pokemon data from earlier, which has four dimensions, and placed it in a variable called pokemon. Your task is to create a PCA model of the data, then to inspect the resulting model using the summary() function.
이 연습은 강의의 일부입니다
Unsupervised Learning in R
연습 안내
- Create a PCA model of the data in
pokemon, settingscaletoTRUE. Store the result inpr.out. - Inspect the result with the
summary()function.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Perform scaled PCA: pr.out
# Inspect model output