convert_measurement {forceR}R Documentation

Converts LJStream *.dat file to standard time series.

Description

Converts LJStream *.dat file to standard time series.

Usage

convert_measurement(file, path.data = NULL, collect_garbage = FALSE)

Arguments

file

File path to raw measurement (*.dat file).

path.data

A string character defining where to save the results. If NULL, data is not stored in a file. Default: NULL.

collect_garbage

Logical. If TRUE, then the gc() command will be run silently to try to clean up memory. This may help when running convert_measurement in a loop, even though memory cluttering cannot be fully prevented. If such a loop crashes, the loop should be split into several separate loops to convert all files. Default: FALSE.

Value

Returns and, if ⁠path.data is not NULL⁠, saves data in csv-format in path.data.

The output tibble has the following format:

t y
t.1 y.1
... ...
t.n y.n

Examples

# get file path of forceR example file
filename <- forceR_example(type = "LJStream")
file.converted <- convert_measurement (file = filename,
                       path.data = NULL)
file.converted


[Package forceR version 1.0.20 Index]