Learn R Programming

PopED (version 0.7.0)

cell: Create a cell array (a matrix of lists)

Description

Create a cell array as in MATLAB.

Usage

cell(...)

Value

A list of empty lists.

Arguments

...

Dimensions for the cell array.

See Also

Other MATLAB: diag_matlab(), feval(), fileparts(), isempty(), ones(), rand(), randn(), size(), tic(), toc(), zeros()

Examples

Run this code

cell(3)
cell(2,3)

## define possible values of 2 categorical design variable
x.space <- cell(1,2)
x.space[1,1] <- list(seq(10,100,10))
x.space[1,2] <- list(seq(10,300,10))
x.space
x.space[1,1]
x.space[1,2]

Run the code above in your browser using DataLab