Skip to content

Help on numerical object and ifelse function

1 message · Daniel Nordlund

#
Andras,

if you have a single test value, and you want to return either x or y, then use if() instead.

w <- if(z > 14) x else y


Hope this is helpful,

Dan


Daniel Nordlund
Bothell, WA USA