I have written a function in R as follows:
createV <- function(vid){
vid1 = substring(toString(vid),3)
return(vid1)
}
I have exposed this function as an api using opencpu
when i call the API where parameter vid = "abcd123", it throws an error saying object not found in call: substring(abcd123)
It treats the variable content as object. How do I fix this?