Using Scripts in MTConnectR Package

get_data.R

This script can be used to contextualize data from a delimited log file and convert it into a csv format. You can have the data either in 1) long format - with multiple timelines for each data item or 2) wide format - with a single timeline in which all data items are together.

Usage

Rscript scripts/get_data.R {file_path_log} {file_path_xml} {device_name} {file_path_output} {type}

Arguments

Example

Rscript scripts/get_data.R "../../Work/data/delimited_mtc_data/nist_test_bed/GF_Agie_HPM600U-02NOV2015" "../../Work/data/delimited_mtc_data/nist_test_bed/Devices.xml" nist_testbed_GF_Agie_1 "agie_output.csv"


systeminsights/mtconnectR documentation built on July 3, 2019, 1:37 p.m.