I'm very very new to R. I have a csv file that looks like
A B C D
A1 a v a
A2 v v a
A3 a a a
I'd like to make a co occurrence plot
using it but I couldn't figure out how to plot it when the input has characters and not numbers.
I tried using a few packages (I couldn't get any of them to work), out of which one is cooccur
. It gave me the following error "Error in rowSums(spp_site_mat, na.rm = T) : 'x' must be numeric"
.
I'd really really appreciate if you point me toward anything helpful or give any code suggestions.
EDIT:
Rows would have the values from column A, columns would be their corresponding values, "a" and "v" something as shown in this link.
Also I have hundreds of columns so I cannot change each column to numeric using as.numeric(table$B)