Description Usage Arguments Value Examples
View source: R/read_fs_table.R
This function reads output from a Freesurfer table command,
e.g. aparcstats2table
, asegstats2table
1 |
file |
(character path) filename of text file |
sep |
separator to override attribute of file, to
pass to |
stringsAsFactors |
(logical) passed to |
header |
Is there a header in the data |
... |
additional arguments to |
data.frame
from the file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | if (have_fs()) {
outfile = aparcstats2table(subjects = "bert",
hemi = "lh",
meas = "thickness")
df = read_fs_table(outfile)
seg_outfile = asegstats2table(subjects = "bert", meas = "mean")
df_seg = read_fs_table(seg_outfile)
}
## Not run:
### using the pipe
if (requireNamespace("magrittr", quietly = TRUE)) {
df_seg = asegstats2table(subjects = "bert", meas = "mean") %>%
read_fs_table
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.