Learn R Programming

PopED (version 0.3.2)

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

Description

Create a cell array as in MATLAB.

Usage

cell(...)

Arguments

...

Dimensions for the cell array.

Value

A list of empty lists.

See Also

Other MATLAB: diag_matlab, feval, fileparts, isempty, isfield, ones, randn, randperm, rand, size, tic, toc, zeros

Examples

Run this code
# NOT RUN {
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