in_paren | R Documentation |
Takes a single character or a list of characters and replaces parentheses with brackets. Can be used to prepare a string of statistics (e.g. containing degrees of freedom) for reporting within parentheses.
in_paren(x)
x |
Character. Single character or list of characters. |
An object of the same type as x
, where all parentheses have been
replaced by brackets.
apa_print()
t_stat <- t.test(extra ~ group, data = sleep)
t_test_res <- apa_print(t_stat)
in_paren(t_test_res$stat)
in_paren(t_test_res[1:3])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.