Metric value showing as "0" .Script returning String value

Apr 21 at 8:24 PM
i All
I am doing API Call by using R script. R Code is returning a string value. I need a string value .
But my metric is returning 0. Metric accept only integer value. But my script returns string and i cant change script as as.integer to get integer output. I need to get string value into microstraegy.

Any solutions?