R/srvBatchesForTagProject.R

#' get the batches for a tag project from the data server
#'
#' @param projectID integer scalar motus project ID
#'
#' @param batchID integer largest batchID already owned for this project.
#' Default: 0, meaning none.
#'
#' @return data.frame with these columns:
#' \itemize{
#' \item batchID integer motus batch ID
#' \item motusDeviceID integer motus device ID
#' \item monoBN boot number, for SG receivers; NA for Lotek
#' \item tsStart first timestamp of data
#' \item tsEnd last timestamp of data
#' \item numHits integer number of hits
#' \item ts real processing timestamp
#' }
#'
#' @export
#'
#' @author John Brzustowski \email{jbrzusto@@REMOVE_THIS_PART_fastmail.fm}

srvBatchesForTagProject = function(projectID, batchID=0) {
    x = srvQuery(API=Motus$API_BATCHES_FOR_TAG_PROJECT, params=list(projectID=projectID, batchID=batchID, includeTesting=Motus$includeTesting))
    return (structure(x, class = "data.frame", row.names=seq(along=x[[1]])))
}
jbrzusto/motusClient documentation built on May 30, 2019, 4:33 p.m.