comment_df: Comment several variables of a data.frame

View source: R/data_management.R

comment_dfR Documentation

Comment several variables of a data.frame

Description

Comment several variables of a data.frame using a for loop of comment

Usage

comment_df(x, var_com, quiet = FALSE)

Arguments

x

a data.frame

var_com

variable name/comment pair

quiet

warning if some variable are not found in x (FALSE by default)

Examples

db <- data.frame(a = letters, b = LETTERS)
db <- comment_df(x = db, c('a', 'lowercase letters',
                           'b', 'uppercase letters'))

lbraglia/lbmisc documentation built on March 28, 2024, 10:03 a.m.