Giter Club home page Giter Club logo

Comments (1)

enblacar avatar enblacar commented on June 8, 2024

Hi @RMOsborn012,

Thanks a lot for using my package! I am happy to see that it is useful for your work!

Indeed, you have a point there.

I have modified the source code so that interactions are sorted by any of the following modes:

  • Specificity.
  • Magnitude.
  • Specificity, then magnitude.
  • Magnitude, then specificity.
  • Specificity and magnitude with equal weights (your suggestion).

I was not able to achieve the result you suggested with your suggested code, but I managed in the end by ordering the tibble based on the specificity, store the order in a column, perform the same for magnitude, and then order the final tibble in ascending order based on the sum of the orders for the two columns (so that interactions that ranked high in both magnitude and specificity will have a lower number than lower ranked ones in any of the two columns).

The changes will roll out with update v2.0.0. It might take a while until this happens though. If you really want to use it now, you can always download the commit where I have added this using:

devtools::install_github("enblacar/SCpubr", ref = "fd203b0")
# Reload R Session
detach("package:SCpubr")
library(SCpubr)

Be mindful that I am still working in the update, so things might still break. Plus, it is a major update, so many functions have changed and parameters have been renamed.

Hope this helps!
Enrique

from scpubr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.