readCategories: Imports categorical data

View source: R/IO_categories.R

readCategoriesR Documentation

Imports categorical data

Description

Imports categorical data

Usage

readCategories(
  path,
  startCol,
  endCol,
  codingCol,
  catName,
  namefilt = NA,
  removeSec = 0,
  idOrder = c("id", "session", "group"),
  idSep = "_",
  ...
)

Arguments

path
startCol

character. The column containing the start of each epoch. In hh:mm:ss or mm:ss format, or just a number representing seconds (see timeMaster).

endCol

character. The column containing the end of each epoch.

codingCol

numeric vector. The column(s) containing categories. These will be converted to factors, searching across all files for possible levels.

catName

character. The name of the category

namefilt

character. A name or part of name, to filter among all files in path.

removeSec

numeric or numeric vector. number of seconds to be subtracted from the

idOrder
idSep
...

kleinbub/rIP documentation built on Dec. 21, 2024, 9:15 a.m.