| load_si_data | R Documentation |
load_si_data first checks to see if file must be downloaded from the
jefferislab.org website (because it is missing or out of date). It then loads
the file into the current R session.
load_si_data(
data_name,
type = c("auto", "data", "db", "bigmat", "ff", "plain"),
overwrite = FALSE,
...
)
data_name |
the name of the file to load. |
type |
either |
overwrite |
whether to overwrite an existing file (default:
|
... |
extra arguments to pass to |
Note that bigmat and ff objects will be loaded using
the function fc_attach_bigmat.
For rda files, a character vector of the names of objects created,
invisibly or NULL if nothing loaded. For rds, bigmat or ff files,
the object itself. Otherwise, the path to the downloaded file.
fc_download_data, fc_attach_bigmat
## Not run:
mydata=load_si_data("mydata.rds")
# note that rda files are loaded into the global environment.
load_si_data("mydata.rda")
bigmat=load_si_data("data.desc")
## End(Not run)
# working example - P1 neuron clustering
p1df=load_si_data('p1df.rds')
table(p1df$cluster)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.