R/wide2long.R

wide2long = function (data,type="binary") {
  library(V8)
  js <- V8::v8(typed_arrays = TRUE)
  #js$source(file=system.file("js/underscore-min.js", package="V8"))
  js$source("https://raw.githubusercontent.com/esm-ispm-unibe-ch/dataformatter/master/js/underscore-min.js")
  #js$source(file="js/combinations.js")
  js$source("https://raw.githubusercontent.com/esm-ispm-unibe-ch/dataformatter/master/js/wide2Long.js")
  result = js$call("wideToLong",data,type)
  return (result)
}
esm-ispm-unibe-ch/nmadata documentation built on Jan. 19, 2021, 11:08 a.m.