Learn R Programming

naryn

The naryn package is a toolkit for medical records data analysis. It implements an efficient data structure for storing medical records, and provides a set of functions for data extraction, manipulation and analysis.

Installation

install.packages("naryn")

Or for the latest development version:

remotes::install_github("tanaylab/naryn")

Usage

See the vignette for more details.

Copy Link

Version

Install

install.packages('naryn')

Monthly Downloads

126

Version

2.6.30

License

MIT + file LICENSE

Maintainer

Aviezer Lifshitz

Last Published

September 27th, 2024

Functions in naryn (2.6.30)

emr_entries.get

Get an entry
emr_download_example_data

Download example database
emr_filter.create

Creates a new named filter
emr_db.unload

Unload all tracks from naryn database
emr_entries.reload

Reload entries from disk
emr_entries.rm

Remove an entry
emr_entries.rm_all

Remove all entries
emr_filter.create_from_name

Create a filter from an automatically generated name
emr_db.subset.info

Returns information about the current subset
emr_filter.info

Returns the definition of a named filter
emr_filter.exists

Checks whether the named filter exists
emr_entries.get_all

Get all entries
emr_filter.clear

Clear all filters from the current environment
emr_filter.name

Generate a default name for a naryn filter
emr_screen

Finds Id-Time points that match track expression
emr_entries.set

Set an entry
emr_filter.ls

Returns a list of named filters
emr_db.subset.ids

Returns the ids that constitute the current ids subset
emr_monthly_iterator

Create an iterator that goes every year/month
emr_time

Convert time periods to internal time format
emr_ids_coverage

Returns ids coverage per track
emr_filter.attr.src

Get or set attributes of a named filter
emr_ids_vals_coverage

Returns ids coverage per value track
emr_extract

Returns evaluated track expression
emr_time2posix

Convert EMR time to POSIXct
emr_summary

Calculates summary statistics of track expression
emr_time2char

Convert time to character format
emr_track.import

Imports a track from a file or data-frame
emr_track.unique

Returns track values
emr_track.ids

Returns track ids
emr_time2date

Convert from internal time to year, month, day, hour
emr_filter.rm

Deletes a named filter
emr_track.var.get

Returns value of a track variable
emr_filters.info

Returns the filter definition of named filters given a filter expression
emr_track.attr.set

Assigns a value to the track attribute
emr_track.logical.rm

Deletes a logical track
emr_time2year

Converts time from internal format to a year
emr_track.ls

Returns a list of track names
emr_track.create

Creates a track from a track expression
emr_vtrack.info

Returns the definition of a virtual track
emr_time2dayofmonth

Converts time from internal format to a day of month
emr_track.attr.get

Returns the value of the track attribute
emr_track.attr.rm

Deletes a track attribute
emr_vtrack.ls

Returns a list of virtual track names
emr_vtrack.create

Creates a new virtual track
string_to_var

Create a syntactically valid variable name from a string
emr_vtrack.clear

Clear all virtual tracks from the current environment
var_to_string

Decode a variable created by string_to_var
emr_track.logical.exists

Is a track logical
emr_vtrack.name

Generate a default name for a virtual track
emr_vtrack.rm

Deletes a virtual track
emr_track.logical.info

Returns information about a logical track
emr_track.var.rm

Deletes a track variable
emr_quantiles

Calculates quantiles of a track expression
emr_track.var.ls

Returns a list of track variables for a track
emr_track.addto

Adds new records to a track
naryn-package

Toolkit for medical records data analysis
emr_track.readonly

Gets or sets "read-only" property of a track
emr_track.logical.create

Creates a logical track
emr_track.attr.export

Returns attributes values of tracks
emr_track.info

Returns information about the track.
emr_vtrack.create_from_name

Create a virtual track from an automatically generated name
%>%

Pipe operator
emr_track.rm

Deletes a track
emr_time2hour

Converts time from internal format to an hour
emr_vtrack.exists

Checks whether the virtual track exists
emr_time2month

Converts time from internal format to a month
emr_track.exists

Checks whether the track exists
emr_track.dbs

Returns a vector of db ids which have a version of the track
emr_track.mv

Moves (renames) a track
emr_track.percentile

Returns track percentile of the values
emr_track.var.set

Assigns value to a track variable
emr_vtrack.attr.src

Get or set attributes of a virtual track
.create_logical_track_filter

Create a filter for logical track
emr_entries.ls

List entries
emr_db.connect

Initializes connection with Naryn Database
.emr_expr_vars

Get a vector of variables inside an expression
emr_db.reload

Reloads database
.naryn

An environment for storing the package global variables
emr_dist

Calculates distribution of track expressions
.emr_vtrack.get

Get virtual track parameters given a string
emr_annotate

Annotates id-time points table
.emr_filter

Parse an R filter string
emr_date2time

Converts date and hour to internal time format
emr_db.subset

Defines an ids subset
emr_cor

Calculates correlation statistics for pairs of track expressions