Description Usage Arguments Value Examples
Helper function to remove columns from data based on reg-exp matching. Also takes list of strings.
1 | removeColumns(df, columnNameRegExpMatcher)
|
df |
data |
columnNameRegExpMatcher |
pattern(s) to match to columns; matched columns are dropped. |
a smaller data frame.
1 2 3 4 | good_eats_df <- formhubDownload("good_eats", "mberg")
names(good_eats_form_df) # note it includes submit_date and submit_data both
names(removeColumns(good_eats_form_df, "submit*")) # both of which are gone now
names(removeColumns(good_eats_form_df, c("submit*", "_gps*")) # you can pass a list of regular expressions
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.