in R you can access function documentation with the question mark symbol in the console like this
?fisher.test
I read:
If x is a matrix, it is taken as a two-dimensional contingency table, and hence its entries should be nonnegative integers.
Is your data of this form? if not you should transform it.
For a resource on how to transform data in R, I recommend