Displaying 1 result from an estimated 1 matches for "ibdona".
Did you mean:
dona
2006 Nov 07
3
have I an actual matrix?
...ing a bit hard to me to get into the
required concepts to deal with data.
I am trying to get data from a MySQL database and plotting it with
barplot. Here the code...
library(RMySQL)
con <- dbConnect(dbDriver
("MySQL"),host='localhost',username='root',dbname='ibdona')
rs <- dbGetQuery (con,"select n,year from ibdona.library_location")
dbDisconnect(con)
Graph <- barplot(rs)
And here the error I get...
Error in barplot.default(rs) : 'height' must be a vector or a matrix
paste(rs) gives me...
[1] "c(307, 65, 2, 28, 3, 229, 81,...