title: Error in colMeans(x, na.rm = TRUE) : 'x' must be numeric, What should I do in this situation?
body: <pre><code>setwd("C:/DSI_Data_HW3")
  beach &lt;- read.csv("HW3_Beachtown.csv")
  head(beach, 46)
  str(beach)
  
  table(beach$SPEOPLE)
  
  summary(beach)
  beach_z &lt;- as.data.frame(lapply(beach, scale))
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/uLa9p.png" alt="enter image description here"></p>