ct_read_data: Read data file

Description Usage Arguments Value See Also Examples

Description

In practice, it may be easier to use ct_read_data_config().

Usage

1
ct_read_data(file, n_analog, n_digital, n_max = Inf)

Arguments

file

character, single line, path to a file or a single string

n_analog

integer, number of analog channels

n_digital

integer, number of digital channels

n_max

integer, maximum number of records to read

Value

tibble (data frame)

See Also

ct_read_data_config()

Examples

1
2
3
4
5
6
7
  config <- ct_example("keating_1999.CFG") %>% ct_read_config()
  ct_example("keating_1999.DAT") %>%
    ct_read_data(
      n_analog = config[["##A"]],
      n_digital = config[["##D"]],
      n_max = max(config$sampling_rate$endsamp)
    )

ijlyttle/ieeecomtrade documentation built on May 18, 2019, 3:41 a.m.