Hi folks, I want to calculate the haplotype diversity using pegas package in R. I have a file in the fasta format, however when I set it up as a working data set and calling the function 'hap.dev', I get an error:
Error in UseMethod("hap.div") :
no applicable method for 'hap.div' applied to an object of class "character"
Why it reads fasta data as a character object? What am I doing wrong?
Sorry if it is a dump question, I am completely new to this package.