R/do_uncertain_lines.R

Defines functions .do_uncertain_lines

.do_uncertain_lines <- function(df){
  df <- df[rep(seq_len(nrow(df)), each = 2), ]
  idx <- seq(2, nrow(df), 2)
  df[idx, ]$xmin <- df[idx, ]$xmax
  df[idx, ]$ymin <- df[idx, ]$ymax
  df[idx, ]$zmin <- df[idx, ]$zmax
  df$id.internal <- paste0(df[,1], df[,2])
  df
}

Try the archeoViz package in your browser

Any scripts or data that you put into this service are public.

archeoViz documentation built on June 22, 2024, 10:04 a.m.