-5
setwd("C:/DSI_Data_HW3")
beach <- read.csv("HW3_Beachtown.csv")
head(beach, 46)
str(beach)
table(beach$SPEOPLE)
summary(beach)
beach_z <- as.data.frame(lapply(beach, scale))
colMeans(x,na.rm = TRUE)中的錯誤:'x'必須是數字,在這種情況下應該怎麼做?
您無法縮放分類變量... – Roland