delete_columns: A function to delete columns from the data based on data...

Description Usage Arguments Details Value

Description

A function to delete columns from the data based on data and/or user requests.

Usage

1
2
delete_columns(d, del_col = NULL, del_mode = c("auto", "user", "mixed"),
  verbose = TRUE)

Arguments

d

data.frame the columns of which are to be deleted

del_col

numeric. Vector of column numbers to be deleted.

del_mode

how to determine which columns have to be deleted. Can be one of: “auto” (decide based on data), “user” (only take into account user's requests), “mixed” (take into account user request and data). “auto” is used by default if "del_col" is not specified; if it is, “mixed” is used. See Details

verbose

logical. If TRUE (default), report which columns were deleted and why.

Details

The first seven columns in IBEX results always are:

  1. Time the results are received

  2. MD5 hash of participant's IP

  3. Controller type

  4. Item number

  5. Element number

  6. Type

  7. Group

By default, the deletion mode is “auto”. It means that the function will remove columns not containing useful information. This means:

The above applies to all controllers. In addition:

In “user” deletion mode the data will not be taken into account at all, and only the columns specified by user will be deleted.

In “mixed” deletion mode the columns to delete are the union of the sets of automatically deleted columns and user-specified columns.

Value

data.frame 'd' with deleted columns


antonmalko/ibextor documentation built on May 25, 2019, 2:26 p.m.