List of Supported Operations - RConsortium/ddR GitHub Wiki

Outline of the operations we want to support. Click on links for special notes. Currently, we are not including "gets" (<-) functions, as those might be difficult for backends to support. Functional operations should be sufficient for now.

Constructors

  • dlist
  • darray
  • dframe

Common operations

Accessors

  • parts
  • dim
  • length
  • names
  • dimnames

Redundant with dim or dimnames but implementations might provide fast path:

  • nrow
  • ncol
  • rownames
  • colnames

Iteration

  • mapply
  • lapply, since the default coerces to list

Grouping

  • split

Laziness

  • collect

darray operations

Extraction

  • [
  • rev
  • diag

Accessors

  • is.na

Comparison

  • %in%
  • match
  • Comparison group generic

Math

  • Arith group generic
  • Math group generic
  • t

Logic

  • Logic group generic
  • which
  • ifelse

Combination

  • c
  • rbind
  • cbind

Summaries

  • Summary group generic
  • mean
  • median
  • quantile
  • cor
  • sd
  • var
  • unique, duplicated
  • table
  • head, tail
  • colSums
  • colMeans
  • rowSums
  • rowMeans
  • Potentially more row/col summaries, including min, max, any, etc.

Sorting

  • sort
  • order
  • rank

dlist operations

Extraction

  • [[, $

Coercion

  • unlist

dframe operations

This will share all operations with dlist, since a frame is an extension of list. Some have different semantics, though.

Filtering

  • subset

Transformation

  • transform

Summary

  • aggregate
  • xtabs

Combination

  • rbind
  • cbind
  • merge

Evaluation

  • with, within

Probably should not support

Use is() instead of these:

  • is.dframe
  • is.darray
  • is.dlist
  • is.dobject

Use as() instead of these:

  • as.dlist
  • as.darray
  • as.dframe

Copied and Pasted from here.