I've been extracting anuran acoustic data using the program RavenPro v1.6 and am trying to summarise the data in R. Multiple calls were analysed in each bout, meaning there are several data points for each call recording. I've manage to create a new data frame in R with the averages, but when I do it puts all my categorical data to 'NA', as with some of the numerical data. Below is the R code I used to do this. I was wondering if anyone has any insight into how I can create the new data frame with all my numerical values averaged and doesn't remove my categorical information? Thanks in advance!
Great! Thanks for replying so quickly Grey. I've attached some example data and the R code.
I figure it's best to start at the beginning. The data began as just txt files. I've imported all the txt files, added the lineage to the data frame and stacked all the txt files. The final data frame I'm trying to get will have single averaged values for all factors while still keeping the categorical values. I was unsure of how to keep the inter-call and call data separate, so initially I just removed all inter-call data, but since you have experience with RavenPro you may have a better method?
A screenshot of the data is not too useful to work with. Can you provide a copy pasteable version of the data? Something like datapasta makes it very easy.
Apologies but I'm unfamiliar with the package datapasta, and unfortunately I can't upload the spreadsheet I have made in excel. Would it be possible to send it to you via email?