Description Usage Arguments Value Examples
This function creates a formhubData object based on a pair of dataframes: the data and the form that describes the data. The column names of the data match with the "name" column of the form, and the "type" column in the form provide information for type conversion.
1 2 | formhubCast(dataDF, formDF, extraFormDF = data.frame(), dropCols = "",
convert.dates = TRUE)
|
dataDF |
data |
formDF |
form data frame. See format above. |
extraFormDF |
override the form (such as by providing a type for a calculate, a new label, etc.) |
dropCols |
a regular expression, any column name that matches that regexp will be dropped |
formhubDataObj a formhubData Object, with "data" and "form" slots
1 | #See examples under formhubRead; this should be used through formhubRead in almost all cases
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.