Skip to content
Prev 351417 / 398502 Next

lapply function

You need the vectorizes ifelse() instead of if().

Also watch out for order of operations in the last line, and there is
already a base R function named scale(). And spelling of arguments, of
course.
On Saturday, May 30, 2015, Sohail Khan <sohail13 at gmail.com> wrote: