Using sapply for running anovas on many variables

Without a reprex an example solution cannot be provided. This recent post shows the use of purrr::map to apply the same function to multiple objects.