list_parse: Convert an object to list with identical structure

View source: R/helpers.R

list_parseR Documentation

Convert an object to list with identical structure

Description

This functions are similar to rlist::list.parse but this removes names. NAs are removed for compatibility with rjson::toJSON.

Usage

list_parse(df)

list_parse2(df)

Arguments

df

A data frame to parse to list

Examples


x <- data.frame(a = 1:3, type = c("A", "C", "B"), stringsAsFactors = FALSE)
list_parse(x)
list_parse2(x)

jbkunst/highcharter documentation built on March 14, 2024, 12:52 a.m.