Skip to content

Rename functions (5): decomposition #303

Closed

Description

@GegznaV

This issue complements #208 (comment).

These functions may also be renamed. But extension or modification of functionality should also be introduced.

Current name Suggested name Comment Note
decomposition as.hyperSpec(<matrix>), as_hyperSpec(<matrix>)
scores2hyperSpec()
loadings2hyperSpec()
Function can not only renamed bu also redefined as a method of as.hyperSpec(), as_hyperSpec(). See discussion in #144. Related #289 This issue moved to r-hyperspec/hyperSpec#55
chk.hy is.hyperSpec(), is_hyperSpec() 1. May include the functionality of validObject() as well.
2. To keep current functionality (failure in case of non-hyperSpec object), argument fail = TRUE may be added. Default should be fail = FALSE to return FALSE.
Solved in r-hyperspec/hyperSpec#35

Activity

  1. added
    Type: enhancement 🎈
    Topic: style ✏️
    on Feb 11, 2021
  2. bryanhanson commented on Feb 15, 2021

    @bryanhanson
    Collaborator

    Regarding chk.hy also take a look at #130 and the cross-references there-in. I think all these concerns can be fixed at once.

    Regarding decomposition I authored #144 so I agree this should be renamed.

    Somewhat related: decomposition will create a hyperSpec object containing loadings or scores. If loadings, then plotspc should be used, but if scores, plotc should be used. plotc also has other uses. I have not looked at this in detail, but from a user-friendliness point of view, it would be nice if plotc and plotspc were merged, made generic and employed the formula interface like plotc does to specify what should be plotted. Some careful checking of dimensions would be needed to intercept user errors like calling for a plot that does not make sense with the matrix dimensions.

  3. added
    Status: under consideration ❗
    on Feb 23, 2021
  4. changed the title [-]Rename functions (5): decomposition & chk.hy[/-] [+]Rename functions (5): decomposition[/+] on Aug 4, 2021
  5. GegznaV commented on Aug 12, 2021

    @GegznaV
    CollaboratorAuthor

    This discussion moved and reopen as:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: under consideration ❗Topic: rename ♻️Topic: style ✏️Type: enhancement 🎈

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions