R/SummaryToHZAR.R

Defines functions SummaryToHZAR

Documented in SummaryToHZAR

#' @title SummaryToHZAR
#'
#' @description
#' \code{SummaryToHZAR} is a funciton converting list of summaries to HZAR objects
#'
#' @param onesim is a \code{data.frame}, member of list of summaries loaded by \code{ReadSummary}.
#' Package hzar has to be installed.
#'
#' @param gradline is a line of setting table corresponding to the simulation
#'
#' @author Kamil Jaron \email{kamiljaron at gmail.com}
#'
#' @import hzar
#' @export

# TO DO: 2D clines
SummaryToHZAR <- function(onesim, gradline){

  hzartab <- hzar.doMolecularData1DPops(distance = onesim$order,
    pObs = onesim$meanHI,
    nEff = rep(gradline$D, nrow(onesim)))

  return(hzartab)
}
KamilSJaron/ConjunctionStats documentation built on May 7, 2019, 12:06 p.m.