I am trying to run R script in Azure ML studio that transposes/reshapes the dataframe from long to wide format (example). My script runs very fine in Rstudio. But the same does not run in Azure ML studio and throws the following error - could not find function "rowid". It would be great to know how can I get rid of this and what exactly is causing this error despite it being good enough to run neatly in Rstudio.
#Error: Error 0063: The following error occurred during evaluation of R script:
# ---------- Start of error message from R ----------
could not find function "rowid"
# ----------- End of error message from R -----------
I've tried the code in both R versions CRAN R 3.1.0 & Microsoft R open 3.2.2. Thank you very much in advance.