R/Last.R

#' Last element
#'
#' Returns the last element of an array
#'
#' @param x a vector
#'
#' @return the last element of the incoming object
#'
#' @examples
#' 
#'
#' @export
Last <-
function(x) {
	if (length(x) != 0) {
		last <- x[length(x)]
	} else {
		last <- c("")
	}
	
	return(last)
}
andresfpc/KDViz documentation built on May 12, 2019, 3:35 a.m.