metaXTS: Calculate xts from scored corpus

Description Usage Arguments Author(s) See Also

View source: R/metaXTS.R

Description

Calculate xts from scored corpus

Usage

1
2
3
  metaXTS(corpus, fieldnames, period = "days", k = 1,
    aggFUN = mean, symbol, prefix = "SEMNT",
    join = "inner", na.omit = TRUE)

Arguments

corpus

Scored corpus from which xts object should be generated, see score

fieldnames

Fieldnames to be used from DMetaData(corpus), defaults to DMetaData(corpus)

period

Period unit of xts time series object to be returned, defaults to "days", see endpoints

k,

Period length of xts time series object to be returned, defaults to 1, see endpoints

aggFUN

Aggregation function to be used for meta fields, defaults to mean

symbol

xts object to be merged with sentiment time series, preferably OHLC time series

prefix

Character string specifying prefix of resulting sentiment time series column names

join

Join which should be performed if symbol is specified

na.omit

remove NA's from resulting time series, see na.omit

Author(s)

Mario Annau

See Also

score endpoints (in package xts)


tm.plugin.sentiment documentation built on May 2, 2019, 6:52 p.m.