Skip to content
Prev 361229 / 398506 Next

subset data right

the >subset of your data frame. Example:
Calling factor() on a factor, as the OP did, also drops any unused levels,
as the examples showed.
Factor w/ 3 levels "k","l","m": 1 2 3
Factor w/ 3 levels "k","l","m": 1 2 3

Using droplevels instead of factor does make the intent clearer and
droplevels works on data.frames.





Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Fri, May 27, 2016 at 3:37 AM, S Ellison <S.Ellison at lgcgroup.com> wrote:

            
Message-ID: <CAF8bMcbYtaKXNxGdm240+4xBhAhxVW42OCNyszV+nkaGUqd=MA@mail.gmail.com>
In-Reply-To: <1A8C1289955EF649A09086A153E2672403E14A94D2@GBTEDVPEXCMB04.corp.lgc-group.com>