I am four hours into R programming. When I create a barchart from a SQL Script I get all 1's for the bar values. Here are my steps:
states =dbGetQuery(con, "SELECT state, COUNT(*) FROM leads GROUP BY state")
when I do view(out) it give me this:
I then try and make a table:
state.freq <- table(states$state)
barplot(state.freq)
I end up with this, basically all 1's??