# NOT RUN {
data("Iso_data")
## Example 1
names <- Iso_data$Identifier
values <- Iso_data$d.D_H.Mean
cor_data <- drift(names, values, 8, "LAB2", -48.7)
# -> Error: "Some itterations in your measurements are missing"
## Example 2
names <- Iso_data$Identifier[1:312]
values <- Iso_data$d.D_H.Mean[1:312]
cor_data <- drift(names, values, 8, "LAB2", -48.7, graph = TRUE)
# -> Inquiry: "Following samples contained NAs which will introduce errors: 377"
# "Do you wish to continue? <Y/N>"
# Y
# -> Inquiry: "There is no significant slope (p = 0.256)"
"Perform slope correction annyway? <Y/N>"
# Y
## Example 3
names <- Iso_data$Identifier[1:312]
values <- Iso_data$d.D_H.Mean[1:312]
cor_data <- drift(names, values, 8, "LAB2", -48.7, graph = TRUE)
# -> Inquiry: "Following samples contained NAs which will introduce errors: 377"
"Do you wish to continue? <Y/N>"
# Y
# -> Inquiry: "There is no significant slope (p = 0.256)"
# "Perform slope correction annyway? <Y/N>"
# N
# -> Inquiry: "Correct for offset between measurements and reference value? <Y/N>"
# Y
# }
Run the code above in your browser using DataLab