I have a csv file, TwitterCount with contents such as:
Tom 3
Alex 4
Sedgwick 1
and read the file into r. I'm trying to plot a histogram with the data i have but it keeps producing the error 'x' must be numeric. Here's the script i had so far..
userc = read.csv("TwitterCount.csv",header = FALSE)
and after reading into R, i try to head() it to see the format.
head(userc)
V1
1 Tom 3
2 Alex 4
3 Sedgwick 1
but when i plot with hist(userc) it says 'x' must be numeric which i don't quite get.