Giter VIP home page Giter VIP logo

compete's People

Contributors

jalapic avatar kayshen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

compete's Issues

`ds` docs

In the ds function, should say 'type` for all instances of using D/P methods. It says use 'method' in one instance.

isi13() fails for n=4 individuals

domatrix
3 4 5 9
3 0 1 1 7
4 0 0 0 0
5 1 0 0 0
9 0 0 0 0

isi13(domatrix)

Error in if (result[i] == result[i + 1]) { :
missing value where TRUE/FALSE needed

isi98(domatrix)

INITIAL RANK:
[1] "3" "5" "4" "9"
I = 0
SI = 0
$best_matrix
3 5 4 9
3 0 1 1 7
5 1 0 0 0
4 0 0 0 0
9 0 0 0 0

$best_order
[1] "3" "5" "4" "9"

$I
[1] 0

$SI
[1] 0

$rs
[1] 1

get_wldf and get_wl_matrix bug

If the third column does not contain "L" then a bug can arise where the functions cannot rbind separate dataframes created from subsetting the data. - need to fix.

rownames/colnames

isi98 doesn't work if rownames don't exist. Need to add colnames to rownames,

get_wl_matrix

if input dataframe is generated by e.g. dplyr syntax, it doesn't not identify as only data.frame. Need to use as.data.frame(df) prior to running function.

check matrix

Include check matrix step at beginning of algorithms to ensure matrix is all numeric.

get_wl_df function

For the function: get_wl_df
At line 34 and 35 – it makes two new data frames: one for id1 winners (a1) and one for id2 winners (a2) so winners are always in the 1st column and losers in the 2nd column.
At line 36 – it adds a new column to both of these new data frames called “result” to give all id1 values 1 — winners.

However, if there are no id2 winners then the code for assigning a new column to the id2 data frame (a2) does not work.

Problem installing compete (R 3.6.1)

I'm unable to install compete because of the following problem:

Warning in install.packages :
  package ‘compete’ is not available (for R version 3.6.1)

Is this a known issue?

author field

These have DESCRIPTION 'Author' fields which contain calls to person()
or as.person(), and hence should be renamed to 'Authors@R' fields (from
which R CMD build will then auto-generated the Author fields).

type = wlbinomties

"Error in mtxbinom(m) : could not find function "mtxbinom""

I forgot to add this function in the package :(

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.