View source: R/dti_tracks_utils.R
| scan.dti.tract.file | R Documentation |
Streams through the tract file and either counts the tracts, or computes the bounding box of all their points, or both. Nothing but the current chunk is ever held in memory, so this works on files of any size.
scan.dti.tract.file(filepath, want = c("count", "bbox"), chunk_values = 4e+06)
filepath |
character string, path to the |
want |
character vector, any combination of 'count' and 'bbox'. |
chunk_values |
integer, number of payload values to read per chunk. |
named list with the entries that were requested:
count (integer, the number of tracts) and bbox (numeric
vector of length 6, c(xmin, xmax, ymin, ymax, zmin, zmax)), or
NULL for bbox if no point was found.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.