Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

faux_cell dataset as parametrized function that generates data #154

Closed
GegznaV opened this issue Jun 15, 2020 · 3 comments
Closed

faux_cell dataset as parametrized function that generates data #154

GegznaV opened this issue Jun 15, 2020 · 3 comments
Assignees
Labels
Priority: 3-low Topic: datasets 📅 Related to datasets in hyperSpec Type: proposal 💡 Proposed ideas for all to consider.

Comments

@GegznaV
Copy link
Collaborator

GegznaV commented Jun 15, 2020

The size of faux_cell dataset is the same as of chondro:

format(object.size(faux_cell), units = "MB")
#> [1] "2.1 Mb"

format(object.size(chondro), units = "MB")
#> [1] "2.1 Mb"

We can't load it as data(faux_cell). And as fauxCell dataset is artificial, why don't we use it as a function, that generates data, e.g.:

faux_cell  <- hyperSpec::generate_faux_cell_data()
faux_cell  
@cbeleites
Copy link
Owner

Object size in memory is the same since it has the same dimensions as chondro.

It is already generated from function .fauxCell() via delayedAssign(), i.e. it is built (and starts to take memory) only when it is called for the fist time.

See https://github.com/cbeleites/hyperSpec/blob/develop/hyperSpec/R/fauxCell.R

@GegznaV GegznaV added the Type: proposal 💡 Proposed ideas for all to consider. label Jun 15, 2020
@cbeleites cbeleites changed the title fauxCell dataset as function that generates data fauxCell dataset as parametrized function that generates data Jun 15, 2020
@GegznaV GegznaV added the Topic: datasets 📅 Related to datasets in hyperSpec label Jun 15, 2020
@ximeg
Copy link
Collaborator

ximeg commented Jun 15, 2020

fauxCell returns a default dataset. We could make an addition function, e.g. makeFauxCell that accepts a set of arguments to parametrize the resulting dataset. If the arguments are not provided, then the resulting dataset is equal to the fauxCell.

@GegznaV GegznaV changed the title fauxCell dataset as parametrized function that generates data faux_cell dataset as parametrized function that generates data Jun 22, 2020
@GegznaV
Copy link
Collaborator Author

GegznaV commented Aug 12, 2021

This discussion was moved and continues as:

@GegznaV GegznaV closed this as completed Aug 12, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Priority: 3-low Topic: datasets 📅 Related to datasets in hyperSpec Type: proposal 💡 Proposed ideas for all to consider.
Projects
None yet
Development

No branches or pull requests

3 participants