it's been a while...trying ANOVA

Hi All,
It's been a while since I've used R and I'm struggling. I'm trying to run an ANOVA in Rstudio. I have 3 species (coyote, red fox, gray fox) and distances from 4 cover types (structure, yard, field, forest). I would like to test for sig diff between species and each cover type as well as test for sig diff for each cover type within each species.
I imported the data set as excel and also added as csv the 'old' way (canids <- read.csv('C:/Users/aprockhill/Documents/Data/CC_Canids_2019.csv'))
Just can't get it to recognize my headings.
any help would be much appreciated.

Hi, and welcome!

Not needed for this question, but for future reference, please see FAQ: What's a reproducible example (`reprex`) and how do I do one?

read.csv recognizes the first line as the header by default. I suggest opening the csv file and confirming that there are no blank lines. Alternatively, if the data is otherwise ok, you can add the headers with

colnames(YOUR_DF) <- c("fee","fi","foo","fum")

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.