Skip to content

Commit

Permalink
Merge pull request #230 from snlab-ch/develop
Browse files Browse the repository at this point in the history
v0.10.2
  • Loading branch information
jhollway authored Jun 20, 2022
2 parents 3e5101e + 0a5edde commit 6e240b1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: migraph
Title: Multimodal and Multilevel Network Analysis
Version: 0.10.1
Date: 2022-06-17
Version: 0.10.2
Date: 2022-06-20
Description: A set of tools that extend common social network analysis packages
for analysing multimodal and multilevel networks.
It includes functions for one- and two-mode (and sometimes three-mode)
Expand Down
8 changes: 7 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# migraph 0.10.2

## Memberships

- Further shortened equivalence examples

# migraph 0.10.1

## Measures
Expand All @@ -7,7 +13,7 @@

## Memberships

- Trimmed equivalence examples
- Shortened equivalence examples

# migraph 0.10.0

Expand Down
11 changes: 2 additions & 9 deletions R/member_equivalence.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ node_equivalence <- function(object, census,
#' @describeIn equivalence Returns nodes' membership in
#' structurally equivalent classes
#' @examples
#' (nse_conc <- node_structural_equivalence(ison_southern_women,
#' cluster = "concor"))
#' plot(nse_conc)
#' (nse <- node_structural_equivalence(mpn_elite_usa_advice))
#' plot(nse)
#' @export
node_structural_equivalence <- function(object,
k = c("silhouette", "elbow", "strict"),
Expand All @@ -102,9 +101,6 @@ node_structural_equivalence <- function(object,

#' @describeIn equivalence Returns nodes' membership in
#' regularly equivalent classes
#' @examples
#' (nre <- node_regular_equivalence(ison_algebra, "elbow"))
#' plot(nre)
#' @export
node_regular_equivalence <- function(object,
k = c("silhouette", "elbow", "strict"),
Expand All @@ -124,9 +120,6 @@ node_regular_equivalence <- function(object,

#' @describeIn equivalence Returns nodes' membership in
#' automorphically equivalent classes
#' @examples
#' (nae <- node_automorphic_equivalence(mpn_elite_usa_advice))
#' plot(nae)
#' @export
node_automorphic_equivalence <- function(object,
k = c("silhouette", "elbow", "strict"),
Expand Down
9 changes: 2 additions & 7 deletions man/equivalence.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/reexports.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions tests/testthat/test-model_regression.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ test_that("glance works correctly for network_reg",{
expect_s3_class(glances, "tbl_df")
expect_equal(round(glances$r.squared, 4), 0.0575)
})

plots <- plot(test)
test_that("plot works correctly for network_reg",{
expect_s3_class(plots, "gg")
expect_equal(plots$labels$x, "Statistic")
})

0 comments on commit 6e240b1

Please sign in to comment.