Skip to content
Prev 305338 / 398506 Next

Parsing "back" to API strcuture

Dear R experts,

I'm reading data from an online database via API and it gets delivered in this messy comma separated structure,
I have this script that nicely parses it into a data frame,
sep = ",", na.strings = "", stringsAsFactors = FALSE))
I then do some calculations and write them to pushed_text and pushed_calc whereafter I need to format the data back to the messy comma separated structure it came in.

I imagine something like this,
Some command that can format my data from the data frame I made, df, back to the structure that the raw API-object came in, RAW.API.

Any help would be appreciated.

Thanks for reading.

Eric