[R] What does `_data` mean in transform()?
Peter Dalgaard
pdalgd at gmail.com
Thu Jul 8 10:27:43 CEST 2010
thmsfuller066 at gmail.com wrote:
> Could you please help me understand what `_data` means and min doesn't
> work row by row?
`_data` is just a name (once upon a time, it was called "x" but then
someone wanted to create a new variable called x).
min() calculates the scalar minimum of everything it gets. It doesn't
work by row, because that's what pmin() does.... (It's a design choice,
you just have to believe that it is intentional and that min(X,Y) ==
min(c(X,Y)) has useful applications).
--
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Phone: (+45)38153501
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
More information about the R-help
mailing list