Skip to content

Commit 5971213

Browse files
committed
New split
+ Remove Warning messages
1 parent 96baaf8 commit 5971213

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

R/site_info_qsim_ID.R

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@
1414
#' @export
1515
#'
1616
site_info_from_qsimID<- function(qsim_id){
17-
s1 <- strsplit(qsim_id, split = "_")[[1]]
18-
if(length(s1) != 3L){
19-
warning(qsim_id, " is not in the correct Qsim ID format.")
20-
}
17+
s1 <- strsplit(qsim_id, split = "__")[[1]]
2118
s2 <- strsplit(s1[2], "\\.")[[1]]
22-
if(length(s2) != 2L){
23-
warning(qsim_id, " is not in the correct Qsim ID format.")
24-
}
2519
list("river_name" = s1[1],
2620
"section_id" = s2[1],
2721
"section_name" = s2[2],

0 commit comments

Comments
 (0)