View source: R/brapi_post_lists_listDbId_items.R
| brapi_post_lists_listDbId_items | R Documentation |
Add Items to a specific List
brapi_post_lists_listDbId_items(con = NULL, listDbId = "", items = "")
con |
list; required: TRUE; BrAPI connection object |
listDbId |
character; required: TRUE; The unique ID of this generic list |
items |
vector of type character; required: TRUE; The list of DbIds to be added to the specified list; default: "", when using multiple values supply as c("value1", "value2"). |
Add new data to a specific generic lists
data.frame
Maikel Verouden
Other brapi-core:
brapi_get_commoncropnames(),
brapi_get_lists_listDbId(),
brapi_get_lists(),
brapi_get_locations_locationDbId(),
brapi_get_locations(),
brapi_get_people_personDbId(),
brapi_get_people(),
brapi_get_programs_programDbId(),
brapi_get_programs(),
brapi_get_search_lists_searchResultsDbId(),
brapi_get_search_locations_searchResultsDbId(),
brapi_get_search_people_searchResultsDbId(),
brapi_get_search_programs_searchResultsDbId(),
brapi_get_search_studies_searchResultsDbId(),
brapi_get_search_trials_searchResultsDbId(),
brapi_get_seasons_seasonDbId(),
brapi_get_seasons(),
brapi_get_serverinfo(),
brapi_get_studies_studyDbId(),
brapi_get_studies(),
brapi_get_studytypes(),
brapi_get_trials_trialDbId(),
brapi_get_trials(),
brapi_post_lists(),
brapi_post_locations(),
brapi_post_people(),
brapi_post_programs(),
brapi_post_search_lists(),
brapi_post_search_locations(),
brapi_post_search_people(),
brapi_post_search_programs(),
brapi_post_search_studies(),
brapi_post_search_trials(),
brapi_post_seasons(),
brapi_post_studies(),
brapi_post_trials(),
brapi_put_lists_listDbId(),
brapi_put_locations_locationDbId(),
brapi_put_people_personDbId(),
brapi_put_programs_programDbId(),
brapi_put_seasons_seasonDbId(),
brapi_put_studies_studyDbId(),
brapi_put_trials_trialDbId()
Other Lists:
brapi_get_lists_listDbId(),
brapi_get_lists(),
brapi_get_search_lists_searchResultsDbId(),
brapi_post_lists(),
brapi_post_search_lists(),
brapi_put_lists_listDbId()
## Not run:
con <- brapi_db()$testserver
con[["token"]] <- "YYYY"
data <- ""
additionalInfo <- list(dummyData = "True", example = "post_lists")
dateCreated <- "2021-04-12T09:01:03.183+02:00"
dateModified <- "2021-04-13T07:00:24.596Z"
externalReferences <-
data.frame(referenceID = c("doi:10.155454/12341234",
"http://purl.obolibrary.org/obo/ro.owl",
"75a50e76"),
referenceSource = c("DOI",
"OBO Library",
"Remote Data Collection Upload Tool"))
listDescription <-
"This is a list of germplasm I would like to investigate next spring season"
listName <- "WURgermplasm_Apr_2021"
listOwnerName <- "Bob Robertson"
listOwnerPersonDbId <- "person1"
listSize <- 0
listSource <- "WUR GeneBank"
listType <- "germplasm"
out <- brapi_post_lists(con = con,
data = data,
additionalInfo = additionalInfo,
dateCreated = dateCreated,
dateModified = dateModified,
externalReferences = externalReferences,
listDescription = listDescription,
listName = listName,
listOwnerName = listOwnerName,
listOwnerPersonDbId = listOwnerPersonDbId,
listSize = listSize,
listSource = listSource,
listType = listType)
brapi_post_lists_listDbId_items(con = con,
listDbId = unique(out$listDbId),
items = c("germ1", "germ2", "germ3"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.