Fetches the values of one variable where a second variable is a certain value.
1 |
var |
character. The name of the variable you want values returned for. |
na.rm |
logical. Whether or not to remove NA and NA-like values. |
select_list. |
A list of all subselections, with the name of the variable to
subselect by and the value it should be (e.g., |
col. |
3 (default) to grap values, 2 to grab the variable name, 1 to grab the ids, or 'all' to grab the entire data frame for that variable. |
data. |
The data to grap values from. This is assumed to be a three column melted dataframe, using reshape2 <http://cran.r-project.org/web/packages/reshape2/index.html>. The first column should contain IDs, the second column should contain variable names, and the third column should contain variable values. e.g., to return the favorite food of people from the city of Paris:
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.