R/First.R

#' First element
#'
#' Returns the first element of an array
#'
#' @param x a vector
#'
#' @return the first element of the incoming object
#'
#' @examples
#' 
#'
#' @export
First <-
function(x) {
	if (length(x) != 0) {
		first <- x[1]
	} else {
		first <- c("")
	}

	return(first)
}
andresfpc/KDViz documentation built on May 12, 2019, 3:35 a.m.