-
Introduction
-
Where can these expressions be used ?
-
Why should I learn about this ?
-
The Basics
-
Conditional and Logical expressions
-
Unary and Binary Operators
-
Conditionals and Looping
-
while
-
if-else
-
Code Blocks
-
User functions
-
Tertiary operator ?, : and Elvis
-
Variables and Assignment
-
Scripting with Python
-
Data types
-
Working with vectors
-
Creating a vector
-
Vector arithmetic
-
Creating a sequence or repeated set of numbers
-
Indexing into a vector
-
Selecting and filtering a vector
-
Nozero using filtering
-
Filtering out zeroes with the nonzero()
-
Matching vectors with match()
-
Chopping vectors with mid(), head() and tail()
-
Simple vectorised functions
-
Append and Remove elements in-situ
-
Iterating using sapply
-
Sorting using multisort and argsort
-
Binary search with lowerbound
-
De-duplicating with multiuniq and arguniq
-
Smoothing noisy data
-
Interpolating data points
-
Resampling data points
-
Working with dates and times
-
Date arithmetic
-
Today, Date, Time and Current
-
Season daterange
-
using daterange(...) as a closure
-
Days since, Weeks since, Months since
-
Converting date and time values to strings
-
Working with strings
-
Trimming, Joining and splitting strings
-
Changing case and replacing values
-
Working with sports data and models
-
Accessing metadata
-
Accessing Activity samples
-
W'bal
-
Accessing Activity metrics
-
Aggregating Metrics
-
Aggregating, Averages and Totals
-
Aggregating
-
Cumulative Summation
-
Working with Mean-maximal data and efforts
-
Generating a mean maximal curve from other data
-
Working with peak values for a specific duration
-
Working with performance tests
-
Working with distributions
-
Accessing HRV and Body Measurements
-
Working with the PMC
-
Working with the Banister model
-
Model fitting
-
Linear Regression with lr()
-
Multiple linear regression with mlr()
-
OLS Model Fitting with lm()
-
Function Reference
-
Maths & Stats
-
Vectors
-
Date and Time
-
Strings
-
Sports Data and Models
-
Charts and General
-
Alphabetical
-
acos(v)
-
acosh(v)
-
activities("filter expression", expression) - since v3.6
-
aggregate(vector, by, function) - since v3.6
-
annotate(type, parms) - since v3.6
-
append(vector, v [,pos]) - since v3.6
-
argsort(ascend|descend, vector) - since v3.6
-
arguniq(vector) - since v3.6
-
asin(v)
-
asinh(v)
-
asstring(metricname) and asaggstring(metricname)
-
atan(v)
-
atanh(v)
-
atl
-
autoprocess(expression)
-
banister(stressmetric, performancemetric, nte|pte|perf|cp|date) - since v3.6
-
best(SERIES, duration)
-
bests(SERIES|date, [duration] [,start ,[stop] ]) - since v3.6
-
besttime(distance)
-
bin(data, bins) - since v3.6
-
bool(expr) - since v3.6
-
c(elements) - since v3.6
-
cdfbeta(a,b, v) - since v3.6
-
cdfnormal(sigma, v) - since v3.6
-
ceil(v)
-
config(cranklength|cp|aetp|ftp|w'|pmax|cv|aetp|sex|dob|height|weight|lthr|aethr|maxhr|rhr|units)
-
constant(pi|e)
-
cos(v)
-
cosh(v)
-
count(v ..)
-
ctl
-
cumsum(v) - since v3.6
-
Current
-
curve(series, x|y|z|d|t) - since v3.6
-
Date
-
daterange(start|stop)
-
daterange(from, to, expression) - since v3.6
-
datestring(date) - since v3.6
-
Device
-
dist(SERIES, data|bins) - since v3.6
-
double(string)
-
estimate(model, (cp|ftp|w'|pmax|x))
-
estimates(model, cp|ftp|w'|pmax|date|x) - since v3.6
-
events(date|name|priority|description) - since v3.6
-
exists("symbol") - since v3.6
-
exp(v)
-
fabs(v)
-
fetch("name") - since v3.6
-
filename() - since v3.6
-
floor(v)
-
head(vector, count) - since v3.6
-
interpolate(linear|cubic|akima|steffen, x,y, xvalues) - since v3.6
-
intervals(metric|name|start|stop|type|test|color|route|selected|date|filename [,start [,stop]]) - since v3.6
-
intervalstrings(metric|name|start|stop|type|test|color|route|selected|date|filename [,start [,stop]]) - since v3.6
-
isNumber(v) - since v3.6
-
isString(v) - since v3.6
-
isRide
-
isRun
-
isSwim
-
isXtrain
-
isinf(v)
-
isnan(v)
-
isset(meta)
-
join(v, sep) - since v3.6
-
kmeans(centers|assignments, k, dim1, dim2 .. dimn) - since v3.6
-
length(v) - since v3.6
-
lm(formula, xseries, yseries) - since v3.6
-
log(v)
-
log10(v)
-
lowerbound(vector, value) - since v3.6
-
lr(xvector, yvector) - since v3.6
-
lts(expression)
-
match(v1, v2) - since v3.6
-
max(v, ...)
-
mean(v ...)
-
meanmax(POWER|WPK|HR|CADENCE|SPEED|date|efforts [,start,stop]) - since v3.6
-
meanmax(time, yvalue)
-
measure(group, field)
-
measures(group, field|"date") - since v3.6
-
median(v ...) - since v3.6
-
metadata(symbol) - since v3.6
-
metrics(symbol|date|time [,start [,stop]]) - since v3.6
-
metricstrings(symbol|date|time [,start [,stop]]) - since v3.6
-
aggmetrics(symbol|date|time [,start [,stop]]) - since v3.6
-
aggmetricstrings(symbol|date|time [,start [,stop]]) - since v3.6
-
metricname(metric1 ... metricn) - since v3.6
-
metricunit(metric1 ... metricn) - since v3.6
-
mid(vector, pos, count) - since v3.6
-
min(v ...)
-
mlr(yv, xv1 .. xvn) - since v3.6
-
mode(v ...) - since v3.6
-
month(dates) - since v3.6
-
monthdate - since v3.6
-
multisort(ascend|descend, vector1 .. vectorn) - since v3.6
-
multiuniq(vector1 .. vectorn) - since v3.6
-
nonzero(v) - since 3.6
-
normalize(min, max, v) - since v3.6
-
pdfbeta(a,b, v) - since v3.6
-
pdfnormal(sigma, v) - since v3.6
-
pmc(symbol, stress|lts|sts|sb|rr|date) - since v3.6
-
postprocess(processor, expression)
-
powerindex(power, duration) - since v3.6
-
print(expression)
-
quantile(vector, quantiles) - since v3.6
-
random(n) - since v3.6
-
rank(ascend|descend, list) - since v3.6
-
remove(vector, pos, count) - since v3.6
-
rep(v, count) - since v3.6
-
replace(v, s1, s2) - since v3.6
-
resample(old, new, yvector) - since v3.6
-
rev(vector) - since v3.6
-
round(v) or round(v, dp)
-
rr(expression)
-
samples(POWER|HR etc) - since v3.6
-
sapply(vector, expression) - since v3.6
-
sb(expression)
-
seq(start, stop, step) - since v3.6
-
set(symbol, value, filter)
-
sin(v)
-
sinh
-
smooth(algorithm, ...) - since v3.6
-
sort(ascend|descend, list) - since v3.6
-
split(v, sep) - since v3.6
-
sqrt(v) - since v3.6
-
stddev(vector) - since v3.6
-
store("name", value) - since v3.6
-
string(number)
-
sts(expression)
-
sum(v ...)
-
tail(vector, count) - since v3.6
-
tan(v)
-
tanh(v)
-
tests()
-
tests(user|bests, power|duration) - since v3.6
-
timestring(time) - since v3.6
-
Time
-
Today
-
tolower(v) - since v3.6
-
toupper(v) - since 3.6
-
trim(v) - since v3.6
-
tsb
-
uniq(list) - since v3.6
-
unset(symbol, filter)
-
variance(vector) - since v3.6
-
vdottime(VDOT, distance)
-
week(date) - since v3.6
-
weekdate(week) - since v3.6
-
which(expression, values)
-
xdata("XDATANAME", "XDATASERIES" | km | secs) - since v3.6
-
XDATA("XDATANAME", "XDATASERIES", sparse|repeat|interpolate|resample)
-
XDATA_UNITS("XDATANAME", "XDATASERIES")
-
zones(power|hr|pace|fatigue, name|description|low|high|units|time|percent) - since v3.6
-
Activity Data Reference
-
Metric Reference