I am following the instructions for population genetics in R, and I was able to succesfully follow the instructions, but I am having trouble replicating the functions with my own data. I have been able to import my data (Coysats) in many different formats, so getting data into R Studio is not the problem. I begin having a problem when I try to load the data using the function:
data("Coysats")
but I am met with the following message:
Warning message:In data("Coysats") : data set ‘Coysats’ not found
I am able to get results with the function:
summary(Coysats)
I think this is because the original dataset used in the example that I'm looking comes from a package, so I attempted creating a package, but quickly became even more confused. I simply want to be able to load my data into the console in order to properly use the functions that follow in the example. I am still quite new to R and programming in general, so I would greatly appreciate answers being as specific as possible when describing how to load separate data that is not in a package, and is already in the global environment. Thank you