Closed steffilazerte closed 5 years ago
data
is more standard no? I think about lm()
, plot()
or ggplot2()
True, I was thinking along the lines that data()
is an R base function (well utils
), and I've heard the argument that it's best to avoid it. But perhaps that refers to data
in scripts as opposed to in functions.
Other than that I quite like data
as an argument
I think data
works as an argument name. Thanks both!
Various functions use different argument names for the incoming dataset. For example:
dat
df
data
Suggest we pick one to be consistent (
df
is probably the best)