Type, name and type of mandatory columns are controlled

r_table_checking(
  r_table,
  type,
  column_name = NULL,
  column_type = NULL,
  output = "error"
)

Arguments

r_table

Table object expected.

type

Object of class character expected. Type or class expected of the r table You can choose between arguments "data.frame", or "tbl".

column_name

vector of character expected. Be default NULL. Mandatory column names in r_table.

column_type

vector of character expected. Be default NULL. Mandatory column type in r_table.

output

character expected. Kind of expected output. By default "error". You can choose between "error", "message" or "logical".

Value

The function returns error with output is "error" and if the parameters are not respected, a character with output is "message", a logical with output is "logical"