Giter Club home page Giter Club logo

multiplex's Introduction

Build Status CRAN version CRAN Downloads


multiplex

Author: Antonio Rivero Ostoic (@mplex)


Abstract

Algebraic procedures for the analysis of multiple social networks are delivered with this package. Among other things, it is possible to create and manipulate multivariate network data with different formats, and there are effective ways available to treat multiple networks with routines that combine algebraic systems like the partially ordered semigroup or the semiring structure together with the relational bundles occurring in different types of multivariate network data sets. As well an algebraic approach for two-mode networks is made through Galois derivations between families of the pair of subsets.




Example: Partially Ordered Semigroup of Relations

### create the data: two types of relations among three elements
set.seed(123)
arr <- round( replace( array(runif(18), c(3,3,2)), array(runif(18),
        c(3,3,2))>.5, 3 ) )
### dichotomize it with customized cutoff value
dichot(arr, c = 3)
### create the semigroup
semigroup(arr)
semigroup(arr, type = "symbolic")
### look at the strings
strings(arr)
strings(arr, equat = TRUE, k = 3)
### create the partial order
partial.order(strings(arr), type = "strings")
### plot the partial order (requires "Rgraphviz")
if(require("Rgraphviz", quietly = TRUE)) {
   diagram(partial.order(strings(arr), type = "strings"))
   }



Example: Working with a Two-Mode Network data set

(taken from the multiplex vignette)

### Fruits data
frt <- data.frame(yellow = c(0,1,0,0,1,0,0,0), green = c(0,0,1,0,0,0,0,1), 
                  red = c(1,0,0,1,0,0,0,0), orange = c(0,0,0,0,0,1,1,0), 
                  apple = c(1,1,1,1,0,0,0,0), citrus = c(0,0,0,0,1,1,1,1))
rownames(frt) <- c("PinkLady", "GrannySmith", "GoldenDelicious", "RedDelicious", 
                   "Lemon", "Orange", "Mandarin", "Lime")
### Perform Galois connections among subsets with a reduced labeling
gc <- galois(frt, labeling = "reduced")
### Get the partial order of these "concepts"
pogc <- partial.order(gc, type = "galois")
### Plot the concept lattice of the partial order
if(require("Rgraphviz", quietly = TRUE)) {
   diagram(pogc)
   }

multiplex's People

Contributors

mplex avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.