1. Learn
  2. /
  3. Courses
  4. /
  5. Big Data Analysis with Revolution R Enterprise

Exercise

Bad transformFunc functions

Why is the following function inappropriate to use as a transformFunc function? Assume all elements of mylist on the right side of the assignment exist.

myFun <- function(mylist){

mylist$newvar <- scale(mylist$oldvar)

mylist$newvar2 <- mylist$oldvar2 - myOtherVar

}

Instructions

50 XP

Possible answers