Enhancement of names()

name(data)

Arguments

data

a dataframe

Value

a list

Examples

df <- data.frame(a = NA, b = NA, c = NA) name(df)
#> [[1]] #> [1] "a" "b" "c" #> #> [[2]] #> [1] "'a','b','c'" #> #> [[3]] #> 1 2 3 #> 1 a b c #>