I can’t understand why this error is returning

Asked

Viewed 56 times

1

Error in round(Transform(x), digits) : non-numeric argument to Mathematical Function

My code:

leaflet(br_munic) %>% addProviderTiles(providers$OpenStreetMap) %>% addPolygons(
      fill = T, stroke = F, fillColor = pal(br_munic@data$x),smoothFactor = 0.2, fillOpacity = 0.5, 
      label = paste0(br_munic@data$NOME_MUN, ": ", formatC(br_munic@data$x, big.mark = ","))) %>%  
      addLegend(pal = pal, values = br_munic@data$x, opacity = 1.0)
  }
  • Welcome to Stackoverflow! Edit the question with the result of traceback() soon after the error occurs again

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.