dog_combine_accession_numbers: Combines a ID variable

Description Usage Arguments Value Examples

View source: R/dog_combine_accession_numbers.R

Description

If some ID variable, for the same person are within a specified distance they get combined into one.

Usage

1
2
dog_combine_accession_numbers(df, Accession_number = Accession_number,
  Study_date_time_PACS = Study_date_time_PACS, CPR, time_passed = 60)

Arguments

df

A data frame, which is in long format i.e. multiple rows for every Accession number.

Accession_number

An ID for the service.

Study_date_time_PACS

Timestamp for the service. Must be as a datetime format.

CPR

ID for the individual person.

time_passed

Ho much time i minuttes are allowed to pass between the timestamps.

Value

A data frame with the original columns and some new columns:

Examples

1
dog_combine_accession_numbers(df = rispacs_left, CPR = Patient_RK, time_passed = 30)

davidbaniadam/rispacs documentation built on Nov. 4, 2019, 9:43 a.m.