Skip to content

Commit

Permalink
re-fixed degree distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
derek-corcoran-barrios committed Dec 28, 2020
1 parent b330da3 commit f5e3ffe
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 12 deletions.
3 changes: 2 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Generated by roxygen2: do not edit by hand

export(CompareExtinctions)
export(DergreeDistribution)
export(DegreeDistribution)
export(ExtinctionOrder)
export(ExtinctionPlot)
export(Mostconnected)
export(RandomExtinctions)
export(SimulateExtinctions)
importFrom(MASS,fitdistr)
importFrom(broom,augment)
importFrom(broom,glance)
Expand Down
3 changes: 3 additions & 0 deletions R/Extintions.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
#' @examples
#' data("net")
#' SimulateExtinctions(Network = net, Method = "Mostconnected")
#' @author Derek Corcoran <[email protected]>
#' @author M.Isidora Avila Thieme <[email protected]>
#' @export


SimulateExtinctions <- function(Network, Method){
Expand Down
2 changes: 1 addition & 1 deletion R/Powerlaw.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#' @export


DergreeDistribution <- function(Network, scale = "arithmetic"){
DegreeDistribution <- function(Network, scale = "arithmetic"){
AIC <- Cumulative <- Exp <- fit <- model <- LogPower <- logLik <- BIC <- Power <- Normal.Resid <- LogExp <- family <- AICcNorm <- NULL
totaldegree<- degree(Network)
K <- 0:max(totaldegree)
Expand Down
4 changes: 2 additions & 2 deletions man/CompareExtinctions.Rd

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

6 changes: 3 additions & 3 deletions man/DergreeDistribution.Rd → man/DegreeDistribution.Rd

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

4 changes: 2 additions & 2 deletions man/Mostconnected.Rd

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

42 changes: 42 additions & 0 deletions man/SimulateExtinctions.Rd

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

6 changes: 3 additions & 3 deletions vignettes/How_to_use_the_NetworkExtinction_Package.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,14 @@ RandomExtinctions(Network= net, nsim= 100)

```{r, echo = FALSE}
data(net)
set.seed(123)
Test <- RandomExtinctions(Network= net, nsim= 50)
set.seed(707)
Test <- RandomExtinctions(Network= net, nsim= 100)
knitr::kable(Test$sims, caption = "Table 3: The resulting dataframe of the RandomExtinctions function")
```

```{r, echo = FALSE, fig.cap= "Figure 5. The resulting graph of the RandomExtinctions function"}
data(net)
set.seed(123)
set.seed(707)
Test$graph
```

Expand Down

0 comments on commit f5e3ffe

Please sign in to comment.