mtt/man/leftpad_fnames.Rd

28 lines
785 B
Plaintext
Raw Permalink Normal View History

2023-09-20 16:16:47 +02:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse_logfiles.R
\name{leftpad_fnames}
\alias{leftpad_fnames}
\title{Left padding file names of raw log files from Multi-Touch-Table at the
IWM.}
\usage{
leftpad_fnames(fnames)
2023-09-20 16:16:47 +02:00
}
\arguments{
\item{fnames}{File name in the form of \code{yyyy_mm_dd-hh_mm_ss}, possible
with missing zero left padding.}
2023-09-20 16:16:47 +02:00
}
\value{
Left padded file names.
}
\description{
File names need to be left padded since otherwise the sorting of the
timestamps will be off and one will get negative durations later on
since the wrong events get closed.
}
\examples{
# folders <- "all"
# dirpaths <- paste0("../data/haum_logs_2016-2023/", folders)
# fnames <- dir(dirpaths, pattern = "*.log", full.names = TRUE)
# leftpad_fnames(fnames)
}