Learn R Programming

migest (version 1.8.5)

ipf_seed: Quickly create IPF seed

Description

This function is predominantly intended to be used within the ipf routines in the migest package.

Usage

ipf_seed(m = NULL, R = NULL, n_dim = NULL, dn = NULL)

Arguments

m

Matrix, Array or NULL to build seed. If NULL seed will be 1 for all elements.

R

Number of rows, columns and possibly n_dimensions for seed matrix or array.

n_dim

Numeric integer for the number of n_dimensions - 2 for matrix, 3 or more for an array

dn

Vector of character strings for n_dimension names

Value

An array or matrix

See Also

ipf3_qi, ffs_diff

Examples

Run this code
# NOT RUN {
ipf_seed(m = NULL, R = 4, n_dim = 2)
ipf_seed(m = NULL, R = 5, n_dim = 3, dn = LETTERS[1:5])
ipf_seed(m = matrix(1:4, nrow = 2), n_dim = 3, dn = LETTERS[1:2])
# }

Run the code above in your browser using DataLab