View source: R/toolSplitSubtype.R
toolSplitSubtype | R Documentation |
This function can split a subtype string into smaller entities based on a given separator and check whether these entities exist in a reference list
toolSplitSubtype(subtype, components, sep = ":")
subtype |
A character string which can be split with the given separator into smaller entities |
components |
A named list with the same length as the subtype has entities. Names of the list are used as names of the entities while the content of each list element represents the allowed values of that given entity. If all values are allowed use NULL as entry. |
sep |
separator to be used for splitting |
A named list with the different entities of the given subtype
Jan Philipp Dietrich
toolSplitSubtype("mymodel:myversion:myworld", list(model=c("mymodel","notmymodel"),
version=c("myversion","42"),
world="myworld"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.