add.str: Combine All the Items in a Specific Column of a Data Frame...

View source: R/add_str.R

add.strR Documentation

Combine All the Items in a Specific Column of a Data Frame with any String of Characters

Description

Combine all the items in a specific column of a data frame with any string of characters in the original data frame. Only data frames are supported. The converted column will be a string because it contains strings such as ALL.

Usage

add.str(data, key, add.string = "ALL")

Arguments

data

Specify the data frame to be converted. No other data frame is accepted.

key

Specify the name of the column where you want to convert the value to ALL, etc. and combine them. If the column name does not exist in the data frame, an error occurs.

add.string

Specifies an any single string or value. Convert the specified column to any string of characters or value. The default value is ALL.

Value

a data frame.


indenkun/infun documentation built on April 17, 2025, 2:52 p.m.