Skip to contents

All functions

aggregate_and_document_scale()
Aggregate variables and remember which variables this were
as.data.frame(<formr_item_list>)
Transform formr_item_list into a data.frame for ease of use
asis_knit_child()
knit_child as is
choice_labels_for_values()
switch choice values with labels
crosstabs()
xtabs with sensible defaults
current()
Gives the last element, doesn't omit missings
email_image()
generates valid email cids
expired()
How many surveys were expired?
feedback_chunk()
Text feedback based on groups
finished()
How many surveys were finished?
first()
Gives the first non-missing element
formr_aggregate()
Aggregate data based on item table
formr_api_access_token()
Connect to formr API
formr_api_results()
Get result from formr
formr_api_session()
Get current API session Return or set URL in list form for formr API (if available)
formr_connect()
Connect to formr
formr_disconnect()
Disconnect from formr
formr_inline_render()
render inline text for formr
formr_item_displays()
Download detailed result timings and display counts from formr
formr_items()
Download items from formr
formr_knit()
knit rmarkdown to markdown for formr
formr_last_host()
Get the last specified host
formr_post_process_results()
Processed, aggregated results
formr_raw_results()
Download data from formr
formr_recognise()
Recognise data types based on item table
formr_render()
render text for formr
formr_render_commonmark()
render inline text for formr
formr_results()
Download processed, aggregated results from formr
formr_reverse()
Reverse items based on item table or a fallback_max
formr_shuffled()
Download random groups
formr_simulate_from_items()
Simulate data based on item table
formr_store_keys()
Store keys in keyring
formr_upload_items()
Upload new item table
formr_user_detail()
Download random groups
formr_user_overview()
Download random groups
get_opencpu_rds()
pass in the url to the RDS representation of a openCPU session object, get the object
`%begins_with%`
check whether a character string begins with a string
`%contains%`
check whether a character string contains another
`%contains_word%`
check whether a character string contains another as a word
`%ends_with%`
check whether a character string ends with a string
if_na()
Replace NA values with something else
if_na_null()
This function makes sure you know what to expect when evaluating uncertain results in an if-clause. In most cases, you should not use this function, because it can lump a lot of very different cases together, but it may have some use for fool-proofing certain if-clauses on formr.org, where a field in a survey may either not exist, be missing or have a value to check.
ifelsena()
Like ifelse(), but allows you to assign a third value to missings.
in_time_window()
checks whether the current time is in a certain time window
item()
get item from survey attribute
items()
get item list from survey attributes
knit_prefixed()
knit prefixed
last()
Gives the last non-missing element
loadRDS()
loads an RDS object, assigns it to an object of the base-filename
ls_by_class()
get functions in the environment by their class. Useful to find e.g. all regression models you've stored in interactive programming.
markdown_custom_options()
custom markdown options for rmarkdown's pandoc
markdown_github()
github_markdown for rmarkdown
markdown_hard_line_breaks()
hard line breaks
miss_frac()
percentage of missings for each variable in a data.frame
n_missing()
Returns the number of missings in a variable or dataset. If missings are an explicit level in a factor variable, this function defaults to reporting them anyway.
n_nonmissing()
Returns the number of nonmissings in a variable or dataset. If missings are an explicit level in a factor variable, this function defaults to excluding them anyway.
next_day()
checks whether a new day has broken (date has increased by at least one day)
paste.knit_asis()
paste.knit_asis
print(<knit_asis>)
Print new lines in knit_asis outputs
props()
proportions table
qplot_on_bar()
Plot normed values as a barchart
qplot_on_normal()
Plot a normed value on the standard normal
qplot_on_polar()
Time-polar plot
random_date_in_range()
Random date in range
render_text()
render text
rescue_attributes()
Rescue lost attributes
reverse_labelled_values()
Reverse labelled values
text_message_clickatell()
Send text message via Clickatell
text_message_massenversand()
Send text message via Massenversand.de
text_message_twilio()
Send text message via Twilio
time_passed()
checks how much time has passed relative to the user's last action
word_document()
word_document from rmarkdown, but has an added option not to break on error