Skip to contents

Create basic matrices and arrays.

Usage

eye(x, ...)

# S3 method for default
eye(x, y = x, ...)

# S3 method for matrix
eye(x, ...)

# S3 method for ddf_col
eye(x, ...)

# S3 method for tbl_ddf
eye(x, ...)

ones(x, ...)

# S3 method for default
ones(x, y = x, ...)

# S3 method for array
ones(x, ...)

# S3 method for ddf_col
ones(x, ...)

# S3 method for tbl_ddf
ones(x, ...)

zeros(x, ...)

# S3 method for default
zeros(x, y = x, ...)

# S3 method for array
zeros(x, ...)

# S3 method for ddf_col
zeros(x, ...)

# S3 method for tbl_ddf
zeros(x, ...)

Arguments

x

An object.

...

Other arguments passed on to methods.

y

A scalar integer.

Value

A dibble if x is a dibble. Otherwise, returns a matrix or an array.

Details

These functions override base functions to make them generic. The default methods call the base versions.