prefix: Prefix the names of the columns of a data.frame with a tag

View source: R/utils-DF.R

prefixR Documentation

Prefix the names of the columns of a data.frame with a tag

Description

Prefix the names of the columns of a data.frame with a tag

Usage

prefix(DF, prefix, sep = ".")

Arguments

DF

a data.frame

prefix

a character vector; the tag to be added at the beginning of each column of the data.frame

sep

the separator between the tag and the original content; default='.'

Value

a data.frame with the exact same content and where the columns have been prefixed with a given tag


barzine/barzinePhdR documentation built on Nov. 23, 2024, 8:54 p.m.