Learn R Programming

dibble (version 0.3.0)

basic-matrices-arrays: Basic matrices and arrays

Description

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, ...)

Value

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

Arguments

x

An object.

...

Other arguments passed on to methods.

y

A scalar integer.

Details

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