View source: R/oncotree_to_nci.R
| nci_to_oncotree | R Documentation |
This function maps National Cancer Institute Thesaurus (NCIt) codes to OncoTree codes.
nci_to_oncotree( nci_code = NULL, oncotree_version = "oncotree_latest_stable", expand = FALSE )
nci_code |
NCI codes. |
oncotree_version |
OncoTree database release version. |
expand |
Whether to expand one-to-many mappings. If |
A tibble of two variables: nci_code and oncotree_code.
## Not run:
# Leave `nci_code` empty to return mappings for all NCI codes
nci_to_oncotree()
# Map a few selected OncoTree codes
nci_to_oncotree(nci_code = c('C8969', 'C4862', 'C9168', 'C7967'))
# Use `expand` to make sure the column `oncotree_code` is a character vector
# and not a list-column. One-to-many mappings will result in more than row
# with `oncotree_code` values repeated.
nci_to_oncotree(nci_code = c('C8969', 'C4862', 'C9168', 'C7967'), expand =
TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.