Learn R Programming

lares (version 5.1.0)

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.

Value

List, data.frame, or vector. Depends on the json string.

See Also

Other Tools: autoline(), bind_files(), 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(), haveInternet(), image_metadata(), importxlsx(), ip_data(), listfiles(), mail_send(), msplit(), myip(), 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