Skip to content
Prev 302020 / 398503 Next

Best Programming Practices regarding data frames

On Wed, Aug 1, 2012 at 4:19 PM, Ramiro Barrantes
<ramiro at precisionbioassay.com> wrote:
I'd say return what you need, no more no less: and if you want to
reattach it to the input data, do that at the caller level, but don't
make it required: orthogonality and minimality and all that jazz....

As Bert points out, note that returning a data.frame is by no means
necessary -- they aren't "primitive" data structures like (atomic)
vectors and lists [we are in a Scheme dialect after all!], but they
are helpful and well supported. Use them liberally but no more than
necessary ;-)

Best,
Michael