From d@tr7320 @end|ng |rom un|@@ydney@edu@@u  Tue Oct 10 12:00:05 2023
From: d@tr7320 @end|ng |rom un|@@ydney@edu@@u (Dario Strbenac)
Date: Tue, 10 Oct 2023 10:00:05 +0000
Subject: [Rd] Subset has No Examples for Vector Data
Message-ID: <SY2PR01MB300337984DDDA5045487BBEDCDCDA@SY2PR01MB3003.ausprd01.prod.outlook.com>

Hello,

Could the documentation page for subset gain an example of how to use it for something other than a data frame or matrix? I arrived at

> random <- LETTERS[rpois(100, 10)]
> subset(table(random), x > 10)
named integer(0)

I expected a part of the table to be returned rather than an empty vector.

--------------------------------------
Dario Strbenac
University of Sydney
Camperdown NSW 2050
Australia


[Rd] Subset has No Examples for Vector Data
Dario Strbenac