Description Usage Arguments Details Value Examples
This function turns a list of data obtained from the Avant API in
homogeneous format into a data.frame
. Here, homogeneous refers
to a list of lists with the first element of the list being a character
vector of column names, and subsequent list elements being lists of
values in the correct order and of the same length as the names vector.
1 | homogeneous_recombinator(dat, id = "id")
|
dat |
list. The list of lists to process. The first list element is a character vector of variable names, and subsequent elements are lists of variable values ordered by these variable names. |
id |
character. Primary key, by default |
For example,
list(c('variable_one', 'variable_two'), list(1, 'a'), list(2, 'b'))
refers to a data set with two variables with two rows, the first variable
having c(1,2)
and the latter having 'a', 'b'
.
If the list of lists is not formatted in this way, the function performs
no error handling and will likely return a malformed data.frame
.
the formatted data.frame
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.