fit: Fit biker output

Description Usage Arguments Value See Also Examples

Description

Fit biker output

Usage

1
2
fit(obj, data_type = c("hourlyRentals", "dailyRentals", "stationJourneys",
  "bikeUsage"), fit_type = c("arima", "loess", "smooth.spline"), ...)

Arguments

obj

An object of class biker from loadBikes

data_type

The type of data to be analysed, either yearly, quarterly, or monthly

fit_type

The type of model required, either gam (gam), loess (loess), or smoothing spline (smooth.spline)

Value

A list of tibbles which contains hourly, a, and b values for each time series respectively.

See Also

loadBikes, plot

Examples

1
2
3
ans1 = loadBikes('26Jul2017-31Jul2017')
ans2 = fit(ans1, data_type = 'hourlyRentals', fit_type = 'smooth.spline')
ans3 = fit(ans1, data_type = 'dailyRentals', fit_type = 'loess')

OzzieBelazi/advRProject documentation built on May 8, 2019, 11:47 a.m.