Extract

emr_extract()

Returns evaluated track expression

emr_dist()

Calculates distribution of track expressions

emr_screen()

Finds Id-Time points that match track expression

emr_annotate()

Annotates id-time points table

emr_cor()

Calculates correlation statistics for pairs of track expressions

emr_quantiles()

Calculates quantiles of a track expression

emr_summary()

Calculates summary statistics of track expression

emr_ids_coverage()

Returns ids coverage per track

emr_ids_vals_coverage()

Returns ids coverage per value track

emr_monthly_iterator() emr_yearly_iterator()

Create an iterator that goes every year/month

Database

emr_db.connect() emr_db.init() emr_db.ls()

Initializes connection with Naryn Database

emr_db.reload()

Reloads database

emr_db.subset()

Defines an ids subset

emr_db.subset.ids()

Returns the ids that constitute the current ids subset

emr_db.subset.info()

Returns information about the current subset

emr_db.unload()

Unload all tracks from naryn database

Track

emr_track.addto()

Adds new records to a track

emr_track.attr.export()

Returns attributes values of tracks

emr_track.attr.get()

Returns the value of the track attribute

emr_track.attr.rm()

Deletes a track attribute

emr_track.attr.set()

Assigns a value to the track attribute

emr_track.create()

Creates a track from a track expression

emr_track.dbs() emr_track.current_db()

Returns a vector of db ids which have a version of the track

emr_track.exists()

Checks whether the track exists

emr_track.ids()

Returns track ids

emr_track.import()

Imports a track from a file or data-frame

emr_track.info()

Returns information about the track.

emr_track.logical.create()

Creates a logical track

emr_track.logical.exists()

Is a track logical

emr_track.logical.info()

Returns information about a logical track

emr_track.logical.rm()

Deletes a logical track

emr_track.ls() emr_track.global.ls() emr_track.user.ls() emr_track.logical.ls()

Returns a list of track names

emr_track.mv()

Moves (renames) a track

emr_track.percentile()

Returns track percentile of the values

emr_track.readonly()

Gets or sets "read-only" property of a track

emr_track.rm()

Deletes a track

emr_track.unique()

Returns track values

emr_track.var.get()

Returns value of a track variable

emr_track.var.ls()

Returns a list of track variables for a track

emr_track.var.rm()

Deletes a track variable

emr_track.var.set()

Assigns value to a track variable

Virtual track

emr_vtrack.attr.src() emr_vtrack.attr.func() emr_vtrack.attr.params() emr_vtrack.attr.keepref() emr_vtrack.attr.time.shift() emr_vtrack.attr.id.map() emr_vtrack.attr.filter()

Get or set attributes of a virtual track

emr_vtrack.clear()

Clear all virtual tracks from the current environment

emr_vtrack.create()

Creates a new virtual track

emr_vtrack.create_from_name()

Create a virtual track from an automatically generated name

emr_vtrack.exists()

Checks whether the virtual track exists

emr_vtrack.info()

Returns the definition of a virtual track

emr_vtrack.ls()

Returns a list of virtual track names

emr_vtrack.name()

Generate a default name for a virtual track

emr_vtrack.rm()

Deletes a virtual track

Filter

emr_filter.attr.src() emr_filter.attr.keepref() emr_filter.attr.time.shift() emr_filter.attr.val() emr_filter.attr.expiration()

Get or set attributes of a named filter

emr_filter.clear()

Clear all filters from the current environment

emr_filter.create()

Creates a new named filter

emr_filter.create_from_name()

Create a filter from an automatically generated name

emr_filter.exists()

Checks whether the named filter exists

emr_filter.info()

Returns the definition of a named filter

emr_filter.ls()

Returns a list of named filters

emr_filter.name()

Generate a default name for a naryn filter

emr_filter.rm()

Deletes a named filter

emr_filters.info()

Returns the filter definition of named filters given a filter expression

Time

emr_date2time()

Converts date and hour to internal time format

emr_time() hours() hour() days() day() weeks() week() day() months() month() years() year()

Convert time periods to internal time format

emr_time2date()

Convert from internal time to year, month, day, hour

emr_time2dayofmonth()

Converts time from internal format to a day of month

emr_time2hour()

Converts time from internal format to an hour

emr_time2month()

Converts time from internal format to a month

emr_time2year()

Converts time from internal format to a year

Track attributes

emr_track.attr.export()

Returns attributes values of tracks

emr_track.attr.get()

Returns the value of the track attribute

emr_track.attr.rm()

Deletes a track attribute

emr_track.attr.set()

Assigns a value to the track attribute

Track variables

emr_track.var.get()

Returns value of a track variable

emr_track.var.ls()

Returns a list of track variables for a track

emr_track.var.rm()

Deletes a track variable

emr_track.var.set()

Assigns value to a track variable

Entries

emr_entries.get()

Get an entry

emr_entries.get_all()

Get all entries

emr_entries.ls()

List entries

emr_entries.reload()

Reload entries from disk

emr_entries.rm()

Remove an entry

emr_entries.rm_all()

Remove all entries

emr_entries.set()

Set an entry

Other

emr_download_example_data()

Download example database

string_to_var()

Create a syntactically valid variable name from a string

var_to_string()

Decode a variable created by string_to_var

naryn-package naryn

Toolkit for medical records data analysis