Contenido principal

rnseloader

Retrieve data from Machine Readable News from LSEG Data & Analytics sentiment archive file

    Description

    x = rnseloader(file) retrieves data from the Machine Readable News sentiment archive file, and outputs the structure x.

    x = rnseloader(file,Name=Value) specifies optional name-value arguments to customize how you retrieve the data. For example, rnseloader(file,"start",10000) returns data starting at record number 1000.

    example

    Examples

    collapse all

    This example shows how you can use multiple name-value arguments to customize the data structure returned by rnseloader.

    Retrieve up to 100000 records from "file.csv", for the securities "ABC.N" and "XYZ.O", with date stamps between and including "02/02/2007" and "02/03/2007".

    x = rnseloader('file.csv','records',100000,...
                   'date',{'02/02/2007','02/03/2007'},...
                   'security',{'ABC.N','XYZ.O'})

    Input Arguments

    collapse all

    Machine Readable News sentiment archive file, specified as a string scalar or character vector.

    Name-Value Arguments

    collapse all

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Example: rnseloader(file,"security","F.N","start",10000)

    Date stamp to retrieve data from, specified as a string scalar, character vector, cell array, or numeric scalar. For example, rnseloader("file.csv","date",{'02/02/2007'}) returns data from a single date stamp, while rnseloader("file.csv","date",{'02/02/2007','02/03/2007'}) retrieves data between two specified date stamps, inclusive.

    List of securities to retrieve data for, specified as a string scalar or cell array. For instance, rnseloader("file.csv","security",{'XYZ.O'}) retrieves data for the security 'XYZ.O' from the specified file.

    Starting record number to retrieve data from, specified as a numeric scalar. For instance, rnseloader("file.csv","start",10000) retrieves data from the specified file starting at record 10000.

    Number of records to retrieve from start of file, specified as a numeric scalar. For example, rnseloader("file.csv","records",10000) retrieves the first 10000 records from the specified file.

    Field names to retrieve, specified as a string scalar or character vector. For instance, rnseloader("file.csv","fieldnames",{'ITEM_ID'}) retrieves only the specified field, 'ITEM_ID' from the specified file.

    Version History

    Introduced in R2008b