Learn R Programming

⚠️There's a newer version (1.2.1) of this package.Take me there.

mtconnectR (version 1.0.0)

Read Data from Delimited 'MTConnect' Data Files and Perform some Analysis

Description

Read data in the 'MTConnect' standard. You can use the package to read data from historical 'MTConnect logs' along with the 'devices.xml' describing the device. The data is organised into a 'MTConnectDevice' S4 data structure and some convenience methods are also provided for basic read/view operations. The package also includes some functions for analysis of 'MTConnect' data. This includes functions to simulate data (primarily position data, feed rate and velocities) based on the G code and visualisation functions to compare the actual and simulated data.

Copy Link

Version

Install

install.packages('mtconnectR')

Monthly Downloads

5

Version

1.0.0

License

AGPL-3

Maintainer

Subramanyam Ravishankar

Last Published

June 17th, 2016

Functions in mtconnectR (1.0.0)

clean_reduntant_rows

Removes Redundant Rows in a data frame assuming statefulness
add_data_item_to_mtc_device

Add a new data item to an existing MTC Device Class
create_mtc_device_from_dmtcd

Create MTCDevice class from Delimited MTC Data and log file
example_dmtcd

Example data set showing MTC Log data
convert_interval_to_ts

Convert Interval to Time Series
example_gcode_parsed

Example data set showing parsed G code data
create_mtc_device_from_ts

Create a MTC device object from a merged time series data frame
calculated_feed_from_position

Calculate feed rate from the path position data items
convert_ts_to_interval

Convert Time Series to Intervals
example_mtc_data_item

Example data set showing a MTConnect DataItem
example_mapped_plot

ggplot object showing mapping between simulated and actual time series
example_mtc_device_2

A bigger example data set showing a MTConnect Device with path position and conditions
example_mtc_device_sim

MTCDevice object showing simulated G code data
extract_param_from_xpath

Extract different parts of a xpath
example_mtc_sim_mapped

MTCDevice object containing actual and simulated data and the mapping
example_xpath_info

Example data set showing Xpaths from a device XML
getDataItem

Get data on one or more data items from the class
getDataItem,MTCCycle,numeric-method

Get one or more data items from the MTCCycle or MTCDevice using a numeric index
merge,MTCCycle,numeric-method

Merge one or more data items from the MTCCycle or MTCDevice using an index
merge,MTCCycle,ANY-method

Merge all data items from the MTCCycle or MTCDevice
map_gcode_mtc

Create a mapping between simulated and actual data
getData

Get data from the object in a data frame form
getData,MTCDataItem-method

Get Data from the Object as a data.frame
get_xpaths_from_xml

Get XML xpath info
get_device_info_from_xml

Get info on all the devices in the xml file
getData,MTCCycle-method

Get Data from MTCDevice/MTCCycle Object as a data.frame
example_mtc_device

Example data set showing a MTConnect Device
example_mtc_device_3

Example data set showing a MTConnect Device
plot_twoway

To plot the mapping between the simulated and actual versions
example_parsed_device_xml

Example dataset showing the parsed xml for a device
example_simulated_gcode_data

Example data set showing simulated G code data
MTCDevice-class

An S4 class to represent a device. It contains MTCCycle class and the slots below.
filter_timestamps_mtc_device

Filter MTCDevice object based on time range
parse_devicexml_for_a_device

Parse XML file for given device name
grep_subset

Subset a data frame using regex matching on the column name and also on the value
getDataItem,MTCCycle,ANY-method

Get the first dataitem
read_dmtcd_file

Function to load Log data into R as a data.frame
getDataItem,MTCCycle,character-method

Get one or more data items from the MTCCycle or MTCDevice using a character pattern
merge,MTCCycle,character-method

Merge one or more data items from the MTCCycle or MTCDevice using a character pattern
mtconnectR

mtconnectR: A package to read analyze data in the 'MTConnect' standard
mergeTS

Merges all the data.frames in the list into single data.frame
summary,MTCDataItem-method

Show a quick summary of the MTCDataItem
parse_gcode

Read the gcode and translate it as per the dictionary
MTCCycle-class

An S4 class to represent the different data items of a device
simulate_data_from_gcode

Simulate position,velocity and other data from G-code
summary,MTCCycle-method

Show a quick summary of the MTCCyle or MTCDevice Object