nameVect: Create a Named Vector from a Data.frame, Table or Vector

Description Usage Arguments Value

View source: R/AmerAssocIndividInvestorsAAII.R

Description

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
see ? caroline::nv

This is R cran package caroline function "nv" with modifications
JAN 2021
https://github.com/cran/caroline/blob/af201137e4a31d675849291a1c9c07a0933b85de/R/convert.R

Modifications:

* function "names" is replaced with the safer function "Names"
  Note, keeping function "Names" and not replacing using "colnames"
  keeps generalization ??

Usage

1

Arguments

x

The source dataframe, table, vector, or factor

name

The column name you would like to pull out as a named vector. OR the names of the vector (if x is a vector)

Value

a named vector or factor


AndreMikulec/econModel documentation built on June 30, 2021, 9:48 a.m.