From S.Ellison at LGCGroup.com  Mon Sep 19 17:41:43 2016
From: S.Ellison at LGCGroup.com (S Ellison)
Date: Mon, 19 Sep 2016 16:41:43 +0100
Subject: [Rd] row names of 'rowsum()'
In-Reply-To: <CAMMJQ0YFrrqFvOa2j3F=Kc3pTJkefQRq-zBT=AcNm9CMJiBT6A@mail.gmail.com>
References: <CAMMJQ0YFrrqFvOa2j3F=Kc3pTJkefQRq-zBT=AcNm9CMJiBT6A@mail.gmail.com>
Message-ID: <1A8C1289955EF649A09086A153E2672403FE677130@GBTEDVPEXCMB04.corp.lgc-group.com>

> 'rowsum()' seems to add row names to the resulting matrix, corresponding to
> the respective 'group' values.  This is very handy, but it is not documented.
> Should the documentation mention it so it could be relied upon as part of API?

If you're referring to base::rowSums, the 'value' section of the help page says 
" A numeric or complex array of suitable size, or a vector if the
  result is one-dimensional.  For the first four functions the
  'dimnames' (or 'names' for a vector result) are taken from the
  original array. "

S Ellison


*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}



[Rd] row names of 'rowsum()'
S Ellison