summarize_column: Summarize a datavyu column

Description Usage Arguments Value Examples

View source: R/1-summarize-column.R

Description

Summarize a datavyu column

Usage

1
2
3
4
5
6
7
summarize_column(
  column,
  code,
  directory = NULL,
  by_file = FALSE,
  summary = "frequency"
)

Arguments

column

the column as a character string

code

the code as a character string

directory

the path to the directory as a character string; can be set with options(directory = "")

by_file

whether or not to calculate the frequencies by file (logical)

summary

either "frequency" or "duration"

Value

A data frame generated with the janitor package

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
summarize_column(column = "childhands", code = "childhands.hand",
  directory = "ex-data/datavyu_output_11-16-2020_13-26")

summarize_column(column = "childhands", code = "childhands.hand",
  directory = "ex-data/datavyu_output_11-16-2020_13-26",
                 by_file = TRUE)

summarize_column(column = "childhands", code = "childhands.hand",
  directory = "ex-data/datavyu_output_11-16-2020_13-26",
                 by_file = TRUE, summary = "duration")

## End(Not run)

tca2/datavyu documentation built on Dec. 23, 2021, 8:40 a.m.