Learn R Programming

BoneDensityMapping (version 0.1.4)

import_scan: import CT scan

Description

import CT scan

Usage

import_scan(scan_filepath)

Value

scan object

Arguments

scan_filepath

String. File path to CT scan data. Should be .nii or .nrrd

Author

Scott Telfer scott.telfer@gmail.com

Examples

Run this code
# \donttest{
  # Download CT scan
  url <- "https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.2/test_CT_hip.nii.gz"
  scan_filepath <- tempfile(fileext = ".nii.gz")
  download.file(url, scan_filepath, mode = "wb")
  import_scan(scan_filepath)
# }

Run the code above in your browser using DataLab