[R] [FORGED] Re: matrix -> delete last row -> list
Rolf Turner
r.turner at auckland.ac.nz
Sat Jul 4 00:35:37 CEST 2015
On 04/07/15 03:43, Sarah Goslee wrote:
> Hi,
>
> On Fri, Jul 3, 2015 at 10:33 AM, Zander, Joscha <joscha.zander at roche.com>
> wrote:
>> Good day R-community,
>>
>> i just wondered if it is a bug or a feature...
>>
>> When i have a matrix "mat" with one column and i delete the last row with
>>
>> mat <- mat[-nrow(mat),] the result is a list.
>
> I have no idea how you're getting a list from a matrix (see below). Perhaps
> you mean a data frame?
<SNIP>
No. The Zander person just means a vector. Psigh.
Note to the Zander person: It is important in R programming to get your
concepts straight. It is also important in communicating with others to
get your terminology straight.
cheers,
Rolf Turner
--
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
More information about the R-help
mailing list