obtener_recubrimiento: Generate a cover of the first missing places of R

Description Usage Arguments Details Value Author(s) Examples

View source: R/obtener_recubrimiento.R

Description

.. content for (no empty lines) ..

Usage

1
obtener_recubrimiento(R, nhuecos = 1L)

Arguments

R
nhuecos

Number of (the first missing) places of R to be filled.

Details

.. content for ..

Value

A matrix

Author(s)

emilio

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
set.seed(1234)
R <- crear_matriz_aleatoria(ndimension=5L,valordiagonal=10L)
print(R)
cat("Number of missing places: ", sum(is.na(R)),".\n",sep="")
cat("Number of values of R: ", length(obtener_valores_posibles(R)),".\n",sep="")
cat("Unique values of R:", obtener_valores_posibles(R),".\n")
cat("Number of total covers: ", length(obtener_valores_posibles(R)),"^",sum(is.na(R)),".\n",sep="")

## Saca todas las combinaciones rellenando los 4 primeros huecos
mrecubrimiento <- obtener_recubrimiento(R,nhuecos=4L)
head(mrecubrimiento)
dim(mrecubrimiento) # 1296 13

emiliotorres/preferelation documentation built on Dec. 20, 2021, 4:25 a.m.