Skip to contents

subset_with_message() makes subset of data.frame that is suitable for a processing of data.

Usage

subset_with_message(x, rows, columns)

Arguments

x

data.frame.

rows

logical, observations to be kept.

columns

character, variables to be kept.

Value

data.frame of selected observations and variables.

Details

subset_with_message() sends message when:

  • rows is not logical because it is an obligation for this function.

  • columns is not a character vector of valid column names, because it is an obligation for this function.

  • rows conducts to delete some observations.