Learn R Programming

turner (version 0.2.0)

Turn Vectors and Lists of Vectors into Indexed Structures

Description

Package designed for working with vectors and lists of vectors, mainly for turning them into other indexed data structures.

Copy Link

Version

Install

install.packages('turner')

Monthly Downloads

4,159

Version

0.2.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Frederic Bertrand

Last Published

September 22nd, 2025

Functions in turner (0.2.0)

prodlist

Product of all elements in a list
sumlist

Sum of all elements in a list
df_to_blocks

Split a data frame into blocks
factor_to_dummy

Create a dummy matrix from the elements in a factor
lengths

Length of each element within a list
list_ones

List with vectors of ones
matrix_to_blocks

Split a matrix into blocks
listsize

Size: total number of elements in a list
maxlist

Maximum of all elements in a list
indexify

Create indices for elements in a vector or list
from_to

Starting and ending positions
listify

Create a list from a vector of integers
funlist

Apply a function to all elements in a list
meanlist

Mean of all elements in a list
minlist

Minimum of all elements in a list
turner

turner Turns vectors and lists of vectors into indexed structures
list_to_dummy

Create a dummy matrix from the elements in a list
vector_to_dummy

Create a dummy matrix from the elements in a vector
list_to_matrix

Design-type matrix from the elements in a list
dummy_to_list

Create an indexed list from a dummy matrix