Skip to content

datar.apis

package

datar.apis

APIs ported from r-base

Functions
  • abs_(x) (Any) Compute the absolute value of a vector</>
  • acos(x) (Any) Get the inverse cosine</>
  • acosh(x) (Any) Get the inverse hyperbolic cosine</>
  • all_(x, na_rm) (Any) Are all elements true</>
  • any_(x, na_rm) (Any) Is any element true</>
  • any_na(x) (Any) Check if anything in x is NA</>
  • append(x, values, after) (Any) Append values to the vector</>
  • arg(x) (Any) Angles of complex numbers</>
  • as_character(x) (Any) Convert a vector to a character vector</>
  • as_complex(x) (Any) Convert a vector to a complex vector</>
  • as_date(x, format, try_formats, optional, tz, origin) (Any) Convert an object to a datetime.date object</>
  • as_double(x) (Any) Convert a vector to a double vector</>
  • as_factor(x) (Any) Convert a vector to a factor vector</>
  • as_integer(x) (Any) Convert a vector to an integer vector</>
  • as_logical(x) (Any) Convert a vector to a logical vector</>
  • as_null(x) (Any) Convert anything to NULL</>
  • as_numeric(x) (Any) Convert a vector to a numeric vector</>
  • as_ordered(x) (Any) Convert a vector to an ordered vector</>
  • asin(x) (Any) Get the inverse sine</>
  • asinh(x) (Any) Get the inverse hyperbolic sine</>
  • atan(x) (Any) Get the inverse tangent</>
  • atan2(y, x) (Any) Get the inverse tangent of y/x</>
  • atanh(x) (Any) Get the inverse hyperbolic tangent</>
  • bessel_i(x, nu, expon_scaled) (Any) Compute the modified Bessel function of the first kind</>
  • bessel_j(x, nu) (Any) Compute the Bessel function of the first kind</>
  • bessel_k(x, nu, expon_scaled) (Any) Compute the modified Bessel function of the second kind</>
  • bessel_y(x, nu) (Any) Compute the Bessel function of the second kind</>
  • beta(x, y) (Any) Compute the beta function</>
  • c_(*args) (Any) Concatenate vectors</>
  • ceiling(x) (Any) Round up to the nearest integer</>
  • chartr(old, new, x) (Any) Translate characters</>
  • choose(n, k) (Any) Compute the binomial coefficient</>
  • col_means(x, na_rm) (Any) Compute the column means of a matrix</>
  • col_medians(x, na_rm) (Any) Compute the column medians of a matrix</>
  • col_sds(x, na_rm) (Any) Compute the column standard deviations of a matrix</>
  • col_sums(x, na_rm) (Any) Compute the column sums of a matrix</>
  • colnames(x, nested) (Any) Get the column names</>
  • complete_cases(x) (Any) Get the complete cases</>
  • conj(x) (Any) Complex conjugate</>
  • cos(x) (Any) Get the cosine</>
  • cosh(x) (Any) Get the hyperbolic cosine</>
  • cospi(x) (Any) Get the cosine of pi times x</>
  • cov(x, y, na_rm, ddof) (Any) Compute pairwise covariance between two variables</>
  • cummax(x) (Any) Cumulative maxima</>
  • cummin(x) (Any) Cumulative minima</>
  • cumprod(x) (Any) Cumulative products</>
  • cumsum(x) (Any) Cumulative sums</>
  • cut(x, breaks, labels, include_lowest, right, dig_lab, ordered_result) (Any) Cut a numeric vector into bins</>
  • diag(x, nrow, ncol) (Any) Get the diagonal of a matrix</>
  • diff(x, lag, differences) (An array of `x[lag) Difference of a numeric vector</>
  • digamma(x) (Any) Compute the digamma function</>
  • dim(x, nested) (Any) Get the dimensions</>
  • droplevels(x) (Any) Drop unused levels of a factor</>
  • duplicated(x, incomparables, from_last) (Any) Get the duplicated values</>
  • endswith(x, suffix) (Any) Does x end with suffix</>
  • exp(x) (Any) Compute the exponential of a vector</>
  • expand_grid(x, *args, **kwargs) (Any) Expand a grid</>
  • factor(x, levels, labels, exclude, ordered, nmax) (Any) Create a factor vector</>
  • factorial(x) (Any) Compute the factorial</>
  • floor(x) (Any) Round down to the nearest integer</>
  • gamma(x) (Any) Compute the gamma function</>
  • grep(pattern, x, ignore_case, value, fixed, invert) (Any) Grep for a pattern</>
  • grepl(pattern, x, ignore_case, fixed) (Any) Grep for a pattern</>
  • gsub(pattern, replacement, x, ignore_case, fixed) (Any) Substitute a pattern</>
  • head(x, n) (Any) Get the first n rows</>
  • identity(x) (Any) Identity function</>
  • im(x) (Any) Imaginary part of complex numbers</>
  • intersect(x, y) (Any) Get the intersection of two vectors</>
  • is_atomic(x) (Any) Is the object atomic</>
  • is_character(x) (Any) Is x a character vector</>
  • is_complex(x) (Any) Check if a vector is complex</>
  • is_double(x) (Any) Is the object a double</>
  • is_element(x, y) (Any) Is the object an element of the table</>
  • is_factor(x) (Any) Check if a vector is a factor</>
  • is_false(x) (bool) Check if anything is false</>
  • is_finite(x) (Any) Check if anything is finite</>
  • is_infinite(x) (Any) Check if anything is infinite</>
  • is_integer(x) (Any) Is the object an integer</>
  • is_logical(x) (Any) Check if a vector is logical</>
  • is_na(x) (Any) Check if anything is NA</>
  • is_null(x) (Any) Check if anything is NULL</>
  • is_numeric(x) (Any) Is the object numeric</>
  • is_ordered(x) (Any) Check if a vector is ordered</>
  • is_true(x) (bool) Check if anything is true</>
  • lbeta(x, y) (Any) Compute the log beta function</>
  • lchoose(n, k) (Any) Compute the log binomial coefficient</>
  • length(x) (Any) Get the length of a vector</>
  • lengths(x) (Any) Get the lengths of a list</>
  • levels(x) (Any) Get the levels of a factor</>
  • lfactorial(x) (Any) Compute the log factorial</>
  • lgamma(x) (Any) Compute the log gamma function</>
  • log(x, base) (Any) Compute the logarithm of a vector</>
  • log10(x) (Any) Compute the base 10 logarithm of a vector</>
  • log1p(x) (Any) Compute the logarithm of one plus a vector</>
  • log2(x) (Any) Compute the base-2 logarithm of a vector</>
  • make_names(names, unique) (Any) Make names for a vector</>
  • make_unique(names) (Any) Make a vector unique</>
  • match(x, table, nomatch) (Any) Match elements of a vector</>
  • max_(x, na_rm) (Any) Compute the maximum of a vector</>
  • max_col(x, ties_method, nested) (Any) Get the maximum column</>
  • mean(x, na_rm) (Any) Compute the mean of a vector</>
  • median(x, na_rm) (Any) Compute the median of a vector</>
  • min_(x, na_rm) (Any) Compute the minimum of a vector</>
  • mod(x) (Any) Modulus of complex numbers</>
  • nchar(x, type_, allow_na, keep_na, _na_len) (Any) Get the number of characters in a string</>
  • ncol(x, nested) (Any) Get the number of columns</>
  • nlevels(x) (Any) Get the number of levels of a factor</>
  • nrow(x) (Any) Get the number of rows</>
  • nzchar(x, keep_na) (Any) Is the string non-zero length</>
  • order(x, decreasing, na_last) (Any) Order a vector</>
  • ordered(x, levels, labels, exclude, nmax) (Any) Create an ordered factor vector</>
  • outer(x, y, fun) (Any) Outer product of two vectors</>
  • paste(*args, sep, collapse) (Any) Join a vector into a string</>
  • paste0(*args, collapse) (Any) Join a vector into a string</>
  • pmax(*args, na_rm) (Any) Returns the (regular or Parallel) maxima and minima of the input values. </>
  • pmin(*args, na_rm) (Any) Returns the (regular or Parallel) maxima and minima of the input values. </>
  • prod(x, na_rm) (Any) Compute the product of a vector</>
  • proportions(x, margin) (Any) Get the proportion table</>
  • psigamma(x, deriv) (Any) Compute the psi function</>
  • quantile(x, probs, na_rm, names, type_, digits) (Any) Compute the quantiles of a vector</>
  • rank(x, na_last, ties_method) (Any) Rank a numeric vector</>
  • rbinom(n, size, prob) (Any) Generate random binomial variables</>
  • rcauchy(n, location, scale) (Any) Generate random Cauchy variables</>
  • rchisq(n, df) (Any) Generate random chi-squared variables</>
  • re_(x) (Any) Real part of complex numbers</>
  • rep(x, times, length, each) (Any) Replicate elements of a vector</>
  • rev(x) (Any) Reverse a vector</>
  • rexp(n, rate) (Any) Generate random exponential variables</>
  • rnorm(n, mean, sd) (Any) Generate random normal variables</>
  • round_(x, digits) (Any) Round the values of a vector</>
  • row_means(x, na_rm) (Any) Compute the row means of a matrix</>
  • row_medians(x, na_rm) (Any) Compute the row medians of a matrix</>
  • row_sds(x, na_rm) (Any) Compute the row standard deviations of a matrix</>
  • row_sums(x, na_rm) (Any) Compute the row sums of a matrix</>
  • rownames(x) (Any) Get the row names</>
  • rpois(n, lambda_) (Any) Generate random Poisson variables</>
  • runif(n, min, max) (Any) Generate random uniform variables</>
  • sample(x, size, replace, prob) (Any) Sample a vector</>
  • scale(x, center, scale_) (Any) Center and/or scale the data</>
  • sd(x, na_rm) (Any) Compute the standard deviation of a vector</>
  • seq(from_, to, by, length_out, along_with) (Any) Generate a sequence</>
  • seq_along(x) (Any) Generate a sequence along a vector</>
  • seq_len(x) (Any) Generate a sequence of length x</>
  • set_colnames(x, names, nested) (Any) Set the column names</>
  • set_levels(x, levels) (Any) Set the levels of a factor</>
  • set_rownames(x, names) (Any) Set the row names</>
  • set_seed(seed) (Any) Set the seed of the random number generator</>
  • setdiff(x, y) (Any) Get the difference of two vectors</>
  • setequal(x, y) (Any) Check if two vectors are equal</>
  • sign(x) (Any) Compute the sign of a vector</>
  • signif(x, digits) (Any) Round the values of a vector to a given number of significant digits</>
  • sin(x) (Any) Get the sine</>
  • sinh(x) (Any) Get the hyperbolic sine</>
  • sinpi(x) (Any) Get the sine of pi times x</>
  • sort(x, decreasing, na_last) (Any) Sort a vector</>
  • sprintf(fmt, *args) (Any) Format a string</>
  • sqrt(x) (Any) Compute the square root of a vector</>
  • startswith(x, prefix) (Any) Does x start with prefix</>
  • strsplit(x, split, fixed, perl, use_bytes) (Any) Split a string</>
  • strtoi(x, base) (Any) Convert a string to an integer</>
  • sub(pattern, replacement, x, ignore_case, fixed) (Any) Substitute a pattern</>
  • substr(x, start, stop) (Any) Get a substring</>
  • substring(x, first, last) (Any) Get a substring</>
  • sum_(x, na_rm) (Any) Compute the sum of a vector</>
  • t(x) (Any) Get the transpose</>
  • table(x, *more, exclude, use_na, dnn, deparse_level) (Any) Get the table of a vector</>
  • tabulate(bin, nbins) (Any) Get the table of a vector</>
  • tail(x, n) (Any) Get the last n rows</>
  • tan(x) (Any) Get the tangent</>
  • tanh(x) (Any) Get the hyperbolic tangent</>
  • tanpi(x) (Any) Get the tangent of pi times x</>
  • tolower(x) (Any) Convert a string to lower case</>
  • toupper(x) (Any) Convert a string to upper case</>
  • trigamma(x) (Any) Compute the trigamma function</>
  • trimws(x, which, whitespace) (Any) Trim whitespace from a string</>
  • trunc(x) (Any) Truncate the values of a vector</>
  • union(x, y) (Any) Get the union of two vectors</>
  • unique(x) (Any) Get the unique values</>
  • var(x, na_rm, ddof) (Any) Compute the variance of a vector</>
  • weighted_mean(x, w, na_rm) (Any) Compute the weighted mean of a vector</>
  • which(x) (Any) Get the indices of the non-zero values</>
  • which_max(x) (Any) Get the index of the maximum value</>
  • which_min(x) (Any) Get the index of the minimum value</>