Learn R Programming

narray (version 0.5.1)

Subset- And Name-Aware Array Utility Functions

Description

Stacking arrays according to dimension names, subset-aware splitting and mapping of functions, intersecting along arbitrary dimensions, converting to and from data.frames, and many other helper functions.

Copy Link

Version

Install

install.packages('narray')

Monthly Downloads

349

Version

0.5.1

License

Apache License (== 2.0) | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michael Schubert

Last Published

October 2nd, 2022

Functions in narray (0.5.1)

like

Reshapes x to be like like, including dimension names
intersect

Intersects all passed arrays along a give dimension, and modifies them in place
match

match() function with extended functionality
map_one

Apply function that preserves order of dimensions
melt

Function to melt data.frame from one or multiple arrays
lambda

Lambda syntax for array iteration
map

Maps a function along an array preserving its structure
mask

Converts a list of character vectors to a logical matrix
named_dots

Return a list of named dot-arguments
subset

Subsets an array using a list with indices or names
narray

R package for subset- and name-aware array utility functions
pb

Progress bar format to be consistent
intersect_list

Intersects a lits of arrays for common dimension names
translate

Translate an axis between two sets of identifiers
vectors_to_row_or_col

Converts vectors in a list to row- or column vectors
restore_null_dimnames

If no dimnames, return NULL and not list of NULLs
rep

Repeats an array along an arbitrary axis
which

A multidimensional which function
stack

Stacks arrays while respecting names in each dimension
split

Splits and array along a given axis, either totally or only subsets
construct

Transform a data.frame with axes and value into an array
dimnames

Return dimension names of an array respecting the number of dimensions
dim

base::dim, but returning 1 for vector
%or%

Operator for array-like logical operations
drop_if

Drop unused dims if flag is TRUE
collect

Converts a logical matrix to a list of character vectors
guess_structure

Infer array structure from data.frame
bind

Binds arrays together disregarding names
flatten

Flattens an array along an axis
filter

Function to discard subsets of an array (NA or drop)