Skip to content

Commit 69a663a

Browse files
committed
Update basic run example in README
1 parent 1bf846b commit 69a663a

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,10 @@ library(tcxr)
6161

6262
```r
6363
# Provide the path to a TCX file
64-
example_tcx_file <- "example.tcx"
64+
tcx <- TCXRead("activity.tcx")
6565

66-
# Parse the TCX file and extract metrics
67-
result <- TCXRead(example_tcx_file)
68-
69-
# Print the extracted data
70-
print(result)
66+
tcx$summary # aggregated activity metrics
67+
tcx$raw_data # full trackpoint dataframe
7168
```
7269

7370
## 💾 Datasets

0 commit comments

Comments
 (0)