Learn R Programming

lares (version 4.8.4)

json2vector: Convert Python JSON string to R vector (data.frame with 1 row)

Description

This function lets the user transform a JSON string into vector (data.frame with 1 row). You can also pass a Python's dictionary. For any other JSON transformation, `jsonlite` is recommended.

Usage

json2vector(json)

Arguments

json

Character. JSON string

See Also

Other Tools: autoline(), bindfiles(), bring_api(), db_download(), db_upload(), export_plot(), export_results(), get_credentials(), h2o_predict_API(), h2o_predict_MOJO(), h2o_predict_binary(), h2o_predict_model(), h2o_selectmodel(), h2o_update(), haveInternet(), image_metadata(), importxlsx(), ip_country(), iter_seeds(), listfiles(), mailSend(), msplit(), myip(), pass(), quiet(), read.file(), statusbar(), tic(), try_require(), updateLares(), zerovar()

Examples

Run this code
# NOT RUN {
json2vector('{"id": 1, "nodata": null, "gender": "M"}')
# }

Run the code above in your browser using DataLab