R/td.ks.R

Defines functions td.ks

Documented in td.ks

td.ks <- function(tdf, col, thresh = 0.05) {
    if (!is.td.data.frame(tdf)) 
        stop("'tdf' is not a td data frame")
    if (missing(col) || !nchar(col)) 
        stop("'col' not specified.")
    if (thresh <= 0 || thresh >= 1) 
        stop("'thresh' value must be greater than 0 and less than 1.")
    query <- .td.genks(tdf, col, thresh)
    df <- tdQuery(query)
    return(df)
}
 
nonsleepr/teradataR documentation built on May 23, 2017, 4:47 p.m.