Assignment10 - Returning test and training data

Re: Assignment10 - Returning test and training data

by Erik Spence -
Number of replies: 0
You can only return a single value (object, whatever), in R. As such, the only way to return multiple things is to bundle them into a container type, such as a list. In this case you may hard-code the names of your training and testing variables into your driver script, since you will pass the training or testing data into your functions.