Hi im very new to R so this might be a basic question but I’m trying to calculate species number and richness from an otu table. I have the code I need however when I do it the output I get is NA for all my values. I looked it up and apparently this is because my data isn’t numeric, when I check using str it says my rows are all integers. Can anyone tell me how I change into numberic from integers?
I’ve attached a picture of the output from my str function to show that they are int (all the others not in the photo all say int too)
I’ve tried to change the data into numeric using as.integer but I’m not 100% sure I’m using it right and when I do I get an error message saying it can not be coerced to type integer, I have also tried using as.characters and it says about typing double