install.packages(c("ggplot2", "ggpubr", "tidyverse", "broom", "AICcmodavg"))
library(ggplot2)
library(ggpubr)
library(tidyverse)
library(broom)
library(AICcmodavg)
my_data <- read.table(file = "clipboard",
sep = "\t", header=TRUE)
group_by(my_data, group) %>%
mutate(across(co2, as.numeric)) %>%
suppressWarnings(as.numeric(co2))
summarise (co2, count = n(), mean = mean("CO2", na.rm = TRUE), sd = sd("CO2", na.rm = TRUE))
Working my way towards carrying out a one way anova test with a dataset and I keep getting this same error code:
No applicable method for 'summarise' applied to an object of class "ts"
When I run the following line of code:
summarise (co2, count = n(), mean = mean("CO2", na.rm = TRUE), sd = sd("CO2", na.rm = TRUE))
My dataset involves no timeseries (a table of CO2 emissions compared to vegetation type) so I'm not sure why I'm getting this error and what I can do to solve it? Any help would be much appreciated, thank you!