Skip to content
Prev 279501 / 398506 Next

Argument validation within functions

On Tue, Dec 6, 2011 at 7:15 AM, Johannes Radinger <JRadinger at gmx.at> wrote:
Read (more carefully?) R docs, please. ! is a unary function that
takes a logical argument(and will coerce to logical nonlogical
arguments if it can); is.numeric() returns a logical, so of course it
should "work". Ergo your failure to understand indicates a fundamental
hole in your understanding of how R works.

-- Bert