Description Usage Arguments Details Value See Also Examples
Modify names of elements in a list file.
1 | modifyNameInList(file, index, name)
|
file |
Name of file. |
index |
A numeric or logical vector. |
name |
A character vector consisting replacement names. |
Modify names of elements with given indices by replacement values provided in parameter name. If the length of replacement values is shorter than the length of indices, values will be used circularly.
invisible TRUE
if no error occurs.
1 2 3 4 5 6 7 8 | list_1 <- list("A" = c(1,2), "B" = "abc", list(1, 2, 3))
saveList(object = list_1, file = "example.llo")
# by numeric indices
modifyNameInList(file = "example.llo", index = c(1,2), name = c("AA","BB"))
# by logical indices
modifyNameInList(file = "example.llo", index = c(TRUE, TRUE, FALSE), name = c("AA","BB"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.