I am getting this error message and wanted to know how to fix it,
Error in do_one(nmeth) : NA/NaN/Inf in foreign function call (arg 1)
In addition: Warning message:
In storage.mode(x) <- "double" : NAs introduced by coercion
history <- dbReadTable(con,"NYC_HISTORICAL")
combine2<-
history %>%
left_join(y=neighboorhood, by= "NEIGHBORHOOD_ID" )
filter9<-
combine2%>%
filter(NEIGHBORHOOD_NAME=="ASTORIA")%>%
group_by(RESIDENTIAL_UNITS)%>%
group_by(YEAR_BUILT)%>%
filter(YEAR_BUILT>="2009")
set.seed(123)
k3 <- kmeans(filter9, centers=3, nstart=25)