View source: R/sm_replace.R View source: R/sm_replace_c.R
Given a set of data from survey monkey, this function will search for all instances of pipes (e.g., Q2 ) and replace these pipes with answers from the corresponding questions (i.e., the answer for Q2).
1 2 | sm_replace(data, data_start = 1, subject_column = "Subject",
brackets = c("[", "{"))
|
data |
A dataframe or datatable containing survey moneky data. |
data_start |
Column where the actual data start. Should be 1, unless there are surevey monkey data columns that do not pertain to questions. |
subject_column |
Subject id variable. |
brackets |
Signifier for survey monkey piping. The old format uses square brackets, and new format uses curly braces. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.