Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dscolby committed Aug 21, 2021
0 parents commit 0353bf6
Show file tree
Hide file tree
Showing 42 changed files with 1,895 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
^spacejamr\.Rproj$
^\.Rproj\.user$
^LICENSE\.md$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.Rproj.user
43 changes: 43 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Package: spacejamr
Title: Simulate Spatial Bernoulli Networks
Version: 1.0.0
Authors@R:
person(given = "Darren",
family = "Colby",
role = c("aut", "cre"),
email = "[email protected]",
comment = c(ORCID = "0000-0001-8468-2755"))
Description: Social network analysis is becoming increasingly popular in many
social science disciplines, but access to useful network data, especially
among marginalized populations, still remains a large obstacle. Using this
package, it is possiblt to mitigate this problem by simulating spatial
Bernoulli networks as orignially proposed by Carter T Butts (2002). To that
end, spacejamr allows network analysts to simulate spatial Bernoulli
networks by generating a spatial point process with a given number of
"nodes" or points in a given geographical area; calculate the probability
that any two nodes share a tie using either a standard power law or
attenuated power law spatial interaction function; and
generate a network object. Additionally, the package also provides simple
to use plotting methods for its classes that return ggplot objects.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.1
Imports:
crsuggest,
dplyr,
ggraph,
ggplot2,
igraph,
magrittr,
sf,
spatstat.core,
spatstat.geom,
ggthemes,
methods
Depends:
R (>= 2.10)
Suggests:
testthat (>= 3.0.0)
Config/testthat/edition: 3
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
YEAR: 2021
COPYRIGHT HOLDER: Darren Colby
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# MIT License

Copyright (c) 2021 spacejamr authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
18 changes: 18 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by roxygen2: do not edit by hand

S3method(plot,NetSim)
S3method(plot,PointSim)
S3method(plot,spacejamr)
S3method(print,NetSim)
S3method(print,PointSim)
S3method(print,spacejamr)
S3method(summary,NetSim)
S3method(summary,PointSim)
S3method(summary,spacejamr)
export("%>%")
export(APLNetwork)
export(HaltonSeq)
export(PointProcess)
export(PowerLawNetwork)
export(spacejamr)
importFrom(magrittr,"%>%")
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# spacejamr 1.0.0

* This is the first version of spacejamr. As bugs are fixed, functionality is
added, or other changes are made, they will be described here.
Loading

0 comments on commit 0353bf6

Please sign in to comment.