Friendly error messages are unfortunately not one of R's strengths. Often, running buggy code will yield something like:
DF <- subset(mtcars, cyl > 4)
df$mpg <- round(df$mpg)
#> Error in df$mpg : object of type 'closure' is not subsettable
Huh? A closure is an R function with an enclosing environment (that is, one that can access the environment where it was defined).
df
is one such function, which gives the F distribution. In plain English, the error message is saying you can't extract an element from a function as if it were a vector.