df.fill.na: Replaces NA values in dataframe for closest price

Description Usage Arguments Value Examples

View source: R/Utils.R

Description

Helper function for BatchGetSymbols. Replaces NA values and returns fixed dataframe.

Usage

1
df.fill.na(df.in)

Arguments

df.in

DAtaframe to be fixed

Value

A fixed dataframe.

Examples

1
2
3
df <- data.frame(price.adjusted = c(NA, 10, 11, NA, 12, 12.5, NA ), volume = c(1,10, 0, 2, 0, 1, 5))

df.fixed.na <- df.fill.na(df)

BatchGetSymbols documentation built on Nov. 25, 2018, 5:04 p.m.