View source: R/parse-formula.R
torchts_parse_formula | R Documentation |
First version returns 3 types of variables:
outcome
predictor
index
torchts_parse_formula(formula, data)
If no predictor is defined, every outcome variable is treated as a predictor
library(dplyr) library(torchts) tarnow_temp <- weather_pl %>% filter(station == "TARNÓW") %>% select(date, max_temp = tmax_daily, min_temp = tmin_daily) View(torchts_parse_formula(max_temp ~ max_temp +index(date), tarnow_temp)) View(torchts_parse_formula(max_temp ~ date, tarnow_temp)) debugonce(torchts_parse_formula) # This example is not working View(torchts_parse_formula(max_temp + min_temp ~ max_temp + min_temp + index(date), tarnow_temp)) View(torchts_parse_formula(max_temp + min_temp ~ max_temp + index(date), tarnow_temp)) View(torchts_parse_formula(min_temp ~ max_temp + date, tarnow_temp)) View(torchts_parse_formula(min_temp ~ max_temp + date + lead(min_temp, 1:5), tarnow_temp))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.