as.named.vector.df: as.named.vector.df

View source: R/CodeAndRoll2.R

as.named.vector.dfR Documentation

as.named.vector.df

Description

Convert any column or row of a dataframe into a vector, keeping the corresponding dimension name.

Usage

as.named.vector.df(
  df,
  col.or.row.name.or.index = 1,
  verbose = TRUE,
  WhichDimNames = 1,
  ...
)

Arguments

df

A dataframe.

col.or.row.name.or.index

Which column or row to extract (numeric index).

verbose

Print the columnname or rowname that is being used

WhichDimNames

Shall we extract rows (2) or columns (1, default)?, Default: 1

...

Additional arguments passed to as.vector().


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.