rnseloader
Retrieve data from Machine Readable News fromRefinitivsentiment archive file
Syntax
x = rnseloader(file)
x = rnseloader(file, 'date', {DATE1})
x = rnseloader(file, 'date', {DATE1, DATE2})
x = rnseloader(file, 'security', {SECNAME})
x = rnseloader(file, 'start', STARTREC)
x = rnseloader(file, 'records', NUMRECORDS)
x = rnseloader(file, 'fieldnames', F)
Arguments
Specify the following arguments as name-value pairs. You can specify any combination of name-value pairs in a single call tornseloader
.
file |
Machine Readable News sentiment archive file from which to retrieve data. |
'date' |
Use this argument with{DATE1,DATE2} to retrieve data between and including the specified dates. Specify the dates as numbers, character vectors, or strings. |
'security' |
Use this argument to retrieve data forSECNAME , whereSECNAME is a cell array containing a list of security identifiers for which to retrieve data. |
'start' |
Use this argument to retrieve data beginning with the recordSTARTREC , whereSTARTREC is the record at whichrnseloader begins to retrieve data. SpecifySTARTREC as a number. |
'records' |
Use this argument to retrieveNUMRECORDS number of records. |
Description
x = rnseloader(file)
retrieves data from the Machine Readable News sentiment archive filefile
, and stores it in the structurex
.
x = rnseloader(file, 'date', {DATE1})
retrieves data fromfile
with date stamps of valueDATE1
.
x = rnseloader(file, 'date', {DATE1, DATE2})
retrieves data fromfile
with date stamps betweenDATE1
andDATE2
.
x = rnseloader(file, 'security', {SECNAME})
retrieves data fromfile
for the securities specified bySECNAME
.
x = rnseloader(file, 'start', STARTREC)
retrieves data fromfile
beginning with the record specified bySTARTREC
.
x = rnseloader(file, 'records', NUMRECORDS)
retrievesNUMRECORDS
number of records fromfile
.
x = rnseloader(file, 'fieldnames', F)
retrieves only the specified fields,F
, in the output structure.
Examples
Retrieve data from the file'file.csv'
with date stamps of'02/02/2007'
:
x = rnseloader(“file.csv”、“日期”,{' 02/02/2007 '})
Retrieve data from'file.csv'
between and including'02/02/2007'
and'02/03/2007'
:
x = rnseloader('file.csv','date',{'02/02/2007',... '02/03/2007'})
Retrieve data from'file.csv'
for the security'XYZ.O'
:
x = rnseloader('file.csv','security',{'XYZ.O'})
Retrieve the first 10000 records from'file.csv'
:
x = rnseloader('file.csv','records',10000)
Retrieve data from'file.csv'
, starting at record 100000:
x = rnseloader('file.csv','start',100000)
Retrieve up to 100000 records from'file.csv'
, for the securities'ABC.N'
and'XYZ.O'
, with date stamps between and including the dates'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'})