Essentially what I want to do is only use the summary() function in r only on specific columns of my df.
Basically doing this (using the cars df as an example):
cars_summary <- summary(cars)
speed_summary <- cars_summary$speed
When I try to do this I get an error saying:
$ operator is invalid for atomic vectors
What does that mean and is there a way to do this without sapply()?
Thanks!