Skip to content

faux_cell dataset as parametrized function that generates data #154

Closed

Description

@GegznaV

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  

Activity

  1. cbeleites commented on Jun 15, 2020

    @cbeleites
    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

  2. added
    Type: proposal 💡
    on Jun 15, 2020
  3. changed the title [-]fauxCell dataset as function that generates data[/-] [+]fauxCell dataset as parametrized function that generates data[/+] on Jun 15, 2020
  4. added
    Topic: datasets 📅
    on Jun 15, 2020
  5. ximeg commented on Jun 15, 2020

    @ximeg
    Collaborator

    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.

  6. changed the title [-]fauxCell dataset as parametrized function that generates data[/-] [+]faux_cell dataset as parametrized function that generates data[/+] on Jun 22, 2020
  7. GegznaV commented on Aug 12, 2021

    @GegznaV
    CollaboratorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Priority: 3-lowTopic: datasets 📅Type: proposal 💡

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions