R/RcppExports.R

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' @title Return Triangular Numbers
#' 
#' @description
#' Return the series of triangular (/triangle) numbers up to a number of
#' \code{n} rows of a triangle. The series has the entry number "A000217"
#' at \url{https://oeis.org/A000217} and starts like this:
#' 0, 1, 3, 6, 10, ...
#' 
#' @usage ntri(n)
#' @param n Positive integer value for sequence length.
#'   
#' @return
#' Returns an integer vector of length \code{n}.
#' 
#' @name ntri
#' 
#' @keywords triangle triangular number
#' 
#' @import Rcpp
#' 
#' @author Sven E. Templer (\email{[email protected]@gmail.com})
NULL

#' @export ntri
ntri <- function(n) {
    .Call('miscset_ntri', PACKAGE = 'miscset', n)
}

Try the miscset package in your browser

Any scripts or data that you put into this service are public.

miscset documentation built on May 2, 2019, 4:01 a.m.