Re: [R] mapple

2019-10-01 Thread Jim Lemon
Hi Phillip, The following seems to do what you want: phdf<-read.table(text="v1 v2 v3 v4 v5 code 0 0 0 0 01 1 4 0 0 01 1 1 0 0 01 1 0 1 0 01 2 0 1 0 01 0 1 0 0 01 0 1 2 0 01 0 1 2 3 01 0 2 3 4 41 0 0 0 2 31",

[R] mapple

2019-10-01 Thread Phillip Heinrich
With the snippet of data below I’m trying to do an if/then type of thing: row 1 – if all five variables equal 0 then code equals 1; row 3 – if v1 = 1 and v2 = 1 then code = 5; row 7 – if v1 = 0 and v2 = 1 and v3 = 2 then code = 10 There are 24 codes in the complete database. v1 v2

[R] [R-pkgs] New package 'backbone' for extracting significant edges from a weighted graph

2019-10-01 Thread Domagalski, Rachel
Hello R users, I am excited to introduce a new package for R which is now available on CRAN called �backbone�. The package can be found here: https://cran.r-project.org/web/packages/backbone/index.html The backbone package provides methods for extracting from a weighted graph a binary or signe