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

View source: R/other_functions.R

json2vectorR Documentation

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(), chr2num(), db_download(), db_upload(), export_plot(), export_results(), files_functions(), font_exists(), formatColoured(), formatHTML(), get_credentials(), glued(), grepm(), h2o_selectmodel(), haveInternet(), image_metadata(), importxlsx(), ip_data(), list_cats(), listfiles(), mail_send(), markdown2df(), move_files(), msplit(), myip(), quiet(), read.file(), statusbar(), tic(), try_require(), updateLares(), warnifnot(), what_size()

Examples

json2vector('{"id": 1, "nodata": null, "gender": "M"}')

lares documentation built on Nov. 5, 2023, 1:09 a.m.