Learn R Programming

lares (version 4.4)

json2vector: Convert JSON string to 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.

Usage

json2vector(json)

Arguments

json

Character. JSON string. Example of a string: '"feat1": null, "feat2": "M"'