Description Usage Arguments Examples
List count of sub-rows per row in a column that is a JSON formatted string
1 | list_nrow_in_aux_column(df1, aux_info_colname)
|
df1 |
A dataframe |
aux_info_colname |
Column name of JSON formatted string |
1 2 3 4 5 | df1 = data.frame(name = c("Alice", "Bob"),
visits__JSON = c('[{"visit_num":1,"condition":"Baseline"}] ',
'[{"visit_num":1,"condition":"Baseline"},{"visit_num":2,"condition":"Relapse"}] '),
stringsAsFactors = FALSE)
list_nrow_in_aux_column(df1, 'visits__JSON')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.