Session Ready
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