RowValid: Validation of the Number of Rows

Description Usage Arguments Value See Also Examples

View source: R/RowValid.R

Description

Validates the number of rows of an object

Returns number of rows if no parameter is used

If Verbose = F, returns dataframe of rows and bool if match

Usage

1
RowValid(x, n = NULL, verbose = TRUE)

Arguments

x

a matrix-like R object

n

number of expected rows

verbose

displays print statements if TRUE

Value

The number of rows in object if no expected no is sent

TRUE if number of rows matches expected

FALSE if number of rows does not match expected

See Also

nrow

Examples

1
2
3
4
5
6
## Not run: 
#EXAMPLE

## End(Not run)
x = matrix(rnorm(100), ncol = 10)
RowValid(x, 10)

ckornafel/expldata documentation built on Dec. 27, 2019, 2:20 a.m.