f_change: This function is used to calculate price change in %

Description Usage Arguments Value

View source: R/f_load.R

Description

This function is used to calculate price change in %

Usage

1
f_change(x, from_start = FALSE, digits = 5)

Arguments

x

stock price

from_start

logical. If TRUE, change will be calculated since day 1

digits

number of digits used when rounding the price change

Value

A vector with prince changes in %


kristian-bak/kb.modelling documentation built on Dec. 21, 2021, 7:46 a.m.