willwerscheid / flashier

A faster and angrier package for EBMF.
https://willwerscheid.github.io/flashier/
Other
10 stars 12 forks source link

Named outputs from sampler #96

Closed pcarbo closed 1 year ago

pcarbo commented 1 year ago

Would it be possible to name the outputs from a posterior sampler? This would make code more clear. For example, it would be nice if

factor3_samp <- lapply(samp, function(x) x[[2]][, 3])

could instead be written as

factor3_samp <- lapply(samp, function(x) x$F[, 3])
willwerscheid commented 1 year ago

great idea! this was pretty straightforward to do. could you please update to latest version and confirm that it is now working for you?

pcarbo commented 1 year ago

Thanks, looks good.