Learn R Programming

normfluodbf (version 1.5.2)

generic_identifier: Title: A function to append a generic identifier attribute to any data frame, but users supply a name for said attribute.

Description

A function that creates an attribute of seq(numrows) with a step size of 1, where the user provides the attribute name.

Usage

generic_identifier(numrows, col_name)

Value

A user-named single attribute data frame with nrow = numrows.

Arguments

numrows

The number of rows the user intends to have in the created data frame.

col_name

The desired attribute name.

Author

Tingwei Adeck

Examples

Run this code
generic_identifier(40, col_name="Cycle_No")

Run the code above in your browser using DataLab