fml | R Documentation |
Takes multiple character arguments as left and right-hand side arguments of a formula, and concatenates them in a single string.
fml(left, right, join.left = " + ", join.right = " + ")
left |
a string with left-hand side formula argument |
right |
a character vector with right-hand side formula arguments |
join.left |
concatenation string for elements of character vector specified in |
join.right |
concatenation string for elements of character vector specified in |
fml("hp", c("am", "cyl")) # "hp ~ am + cyl"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.