View source: R/setGlobalInspectionID.R
replaceInspectionId | R Documentation |
Replace values in columns inspection_id
replaceInspectionId(inspection.data, new_ids)
inspection.data |
list with inspections data frame in element
|
new_ids |
vector of as many inspection ids as there are rows in
|
list with data frames in elements inspections
and
observations
. In each data frame the values in column
inspection_id
are updated according to the new_ids
.
inspection.data <- list(
inspections = data.frame(
inspection_id = 1:3,
pipe_id = 1:3
),
observations = data.frame(
inspection_id = c(1, 1, 2, 2, 3, 3),
observation = c("start", "end", "start", "end", "start", "end")
)
)
replaceInspectionId(inspection.data, new_ids = paste0("id_", 1:3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.