ColType: Determining Class Types of Each Column in an Object

Description Usage Arguments Value See Also Examples

View source: R/ColType.R

Description

Displays the class of each column in a matrix or dataframe

If Verbose = F, returns dataframe col names and class types

Usage

1
ColType(x, verbose = TRUE)

Arguments

x

A matrix-like R object

verbose

Logical value to print results to console

Value

If verbose = FALSE, a dataframe of column object types

See Also

class

Examples

1
2
3
4
5
6
7
df<- data.frame(col1 = c(1,2,3),
               col2 = c(1,2,3),
               col3 = c(1,2,3))

ColValid(df,n = 3)
ColValid(df, n = 2)
cf <- ColValid(df, n = 3, verbose = FALSE)

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