Package 'tcxr'

Title: Parse and Analyze TCX Files
Description: Framework provides functions to parse 'Training Center XML (TCX)' files and extract key activity metrics such as total distance, total time, calories burned, maximum altitude, and power values (watts). This package is useful for analyzing workout and training data from devices that export 'TCX' format.
Authors: Iztok Jr. Fister [aut, cre, cph]
Maintainer: Iztok Jr. Fister <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2025-03-13 09:18:20 UTC
Source: https://github.com/firefly-cpp/tcxr

Help Index


Parse a Lap from a TCX File

Description

Extracts data from a lap within a TCX file, including time, distance, altitude, speed, power, cadence, and heart rate.

Usage

parse_lap(lap)

Arguments

lap

An XML node representing a lap in a TCX file.

Value

A dataframe containing the lap metrics.


Parse a Trackpoint from a TCX File

Description

Extracts data from a trackpoint, including altitude, distance, speed, power, cadence, and heart rate.

Usage

parse_trackpoint(trackpoint)

Arguments

trackpoint

An XML node representing a trackpoint.

Value

A list of parsed trackpoint metrics.


Read and Parse a TCX File

Description

Parses a TCX file to extract key activity metrics such as speed, distance, time, altitude, power, cadence, heart rate, and activity type.

Usage

TCXRead(file_path)

Arguments

file_path

A character string specifying the path to the TCX file.

Value

A list containing the computed activity metrics, including the activity type.