This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
johnson_s_hierarchical_clustering [2016/11/21 11:52] hkimscil |
johnson_s_hierarchical_clustering [2016/11/21 12:15] (current) hkimscil [E.g. 1] |
||
---|---|---|---|
Line 172: | Line 172: | ||
</code> | </code> | ||
+ | |||
+ | # Prepare Data | ||
+ | setwd("d:/rdata") | ||
+ | mydata <- read.csv("cities.csv") | ||
+ | mydata <- na.omit(mydata) # listwise deletion of missing | ||
+ | mydata <- scale(mydata) # standardize variables | ||
+ | |||