In a by()
function, I will use cor
(correlation) to be the FUN
there. However, I'd like to setup use="complete.obs"
too.
I don't know how to pass this argument in the FUN = cor
part.
For example,
by(data, INDICES=list(data$Age), FUN=cor)
probably
by(data, INDICES=list(data$Age), FUN=cor, use = "complete.obs")
will work.
the arguments to by
are passed to FUN
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With