始める無料で始める

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, setting scale to TRUE. Store the result in pr.out.
  • Inspect the result with the summary() function.

実践的なインタラクティブ演習

このサンプルコードを完成させて、この演習に挑戦してみましょう。

# Perform scaled PCA: pr.out


# Inspect model output
コードを編集して実行