list_parse: Convert an object to list with identical structure

Description Usage Arguments Examples

View source: R/helpers.R

Description

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

Usage

1
2
3

Arguments

df

A data frame to parse to list

Examples

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

highcharter documentation built on Jan. 3, 2022, 5:08 p.m.