[R] "invalid argument to unary operator" while selecting rows by name

S Ellison S.Ellison at LGCGroup.com
Wed Sep 21 13:33:27 CEST 2016


> > Works like a charm, thanks! Still don't know what that error message
> > means though. Any idea?

You tried to negate a character string.
-"601"

'-' can't do that.

[-x] relies on negative _numbers_ to remove elements, not on separate interpretation of '-' and 'x'.



S Ellison


*******************************************************************
This email and any attachments are confidential. Any use, copying or
disclosure other than by the intended recipient is unauthorised. If 
you have received this message in error, please notify the sender 
immediately via +44(0)20 8943 7000 or notify postmaster at lgcgroup.com 
and delete this message and any copies from your computer and network. 
LGC Limited. Registered in England 2991879. 
Registered office: Queens Road, Teddington, Middlesex, TW11 0LY, UK


More information about the R-help mailing list