tests/regression/example/data/Albrektson1984/dataManipulate.R

manipulate <- function(raw) {
  
  
  raw$grouping <- makeGroups(raw, "fertilized")
  
  # remove crown surface area, was calculated from crown width and length
  raw$a.cs <- NULL
  
  # h.c was defined as crown length, should be height to base of crown
  raw$h.c <- with(raw, h.t - h.c)
  
  # zero m.rt indicates it was not measured
  raw$m.rt[raw$m.rt == 0] <- NA
  
  raw
}
dfalster/dataMashR documentation built on May 15, 2019, 5:11 a.m.