Download How to solve 'x' must be numeric in r? - Stack Overflow book pdf free download link or read online here in PDF. Read online How to solve 'x' must be numeric in r? - Stack Overflow book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
The issue is that you are passing a dataframe to the hist() function, when it requires a vector for its argument x (see ?hist). Based on your edited post, you would want: hist(as.numeric(data[1,])) Where data[1,] creates a vector from the first row of your dataframe. Though it seems like you may actually be looking for a bar plot. In that case ...
Read : How to solve 'x' must be numeric in r? - Stack Overflow pdf book online Select one of servers for direct link: |
---|