getColumn function

Get data of given column unless if does not exist (return NULL in that case).

Get data of given column unless if does not exist (return NULL in that case).

getColumn(.data, colname)

Arguments

  • .data: data frame
  • colname: column name

Returns

a vector