View source: R/format_questions_extended.R
get_non_empty_fields_by_prefix | R Documentation |
This function takes a dataframe, a row index, and a prefix, returning a vector with the content of columns that start with the given prefix and are not empty.
get_non_empty_fields_by_prefix(df, i, prefix)
df |
A dataframe containing the relevant columns. |
i |
An integer representing the row index. |
prefix |
A string representing the prefix of the column names (e.g., "a_", "fb_a_", "tag_"). |
A vector with non-empty values from the fields with the given prefix in the specified row.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.