merge_fields | R Documentation |
This function is used to merge the fields of two lists. If there are duplicate fields, the fields in s1 are taken.
merge_fields(s1, s2)
s1 |
Arbitrary list e.g., containing metadata or settings. |
s2 |
Arbitrary list e.g., containing metadata or settings. |
A list containing all of the fields in s1 and s2
s1 <- list(a = 1, b = c(2, 3, 4))
s2 <- list(b = 3, c = "cat")
s <- merge_fields(s1, s2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.