check_columns: Check if the primary accelerometer file is formatted...

View source: R/Read_Raw_Utils.R

check_columnsR Documentation

Check if the primary accelerometer file is formatted correctly

Description

check_columns returns a logical scalar indicating whether there is a formatting issue with the file passed as the argument. A value of TRUE indicates the test has passed, whereas FALSE indicates an issue.

Usage

check_columns(file, skip, ...)

Arguments

file

A character scalar giving path to primary accelerometer file

skip

number of lines to skip when reading file

...

Arguments passed to read.csv

Value

a logical scalar indicating whether there was only one column detected when reading the file

Examples

raw_file <-
    system.file("extdata",
    "exampleRAW.csv",
    package = "AGread")

col_check <- check_columns(raw_file, skip = 10)
head(col_check)


AGread documentation built on Sept. 13, 2022, 5:06 p.m.