Skip to contents

Convert vector to 1-row data.frame, maintaining names if present

Usage

vec2df(x, col_names = NULL)

Arguments

x

Vector.

col_names

Character: Name of the vector.

Value

data.frame.

Author

EDG