none
Exploring Data With R RRS feed

  • Question

  • I need help please. I am taking the data science training with MS so I am having this error code whenever I am trying to deploy R.

    Error in summary(dat[c("Temperature", "Sales")]): object 'dat' not found Traceback: 1. summary(dat[c("Temperature", "Sales")])

    Please help me.

    thank you

    Monday, August 13, 2018 1:13 AM

All replies

  • Hi, 

    Could you check the name of your input dataset?

    Within the 'Execute R Script' module, this code seems to work:

    # Map 1-based optional input ports to variables

    data.set <- maml.mapInputPort(1) # class: data.frame

    summary(data.set[c("age", "workclass")])

    # Select data.frame to be sent to the output Dataset

    portmaml.mapOutputPort("data.set");

    The output is as shown below:

    Regards,
    Jaya

    Monday, August 13, 2018 2:55 PM