You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to receive a JSON object, and then covert it into a data frame and do something and then return a data frame.
Something like this:
#' @post /test
function(req){
myData <- fromJSON(req$postBody)
df <- as.data.frame(myData)
doSomething(df) #for ex, run a linear regression model
return(result) # result is a data frame object
}
I have tried a lot of things here and there but it just doesn't work. Can someone help me out?
The text was updated successfully, but these errors were encountered:
I want to receive a JSON object, and then covert it into a data frame and do something and then return a data frame.
Something like this:
I have tried a lot of things here and there but it just doesn't work. Can someone help me out?
The text was updated successfully, but these errors were encountered: