Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ShinySbm
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VANRENTERGHEM Théodore
ShinySbm
Commits
28e6f3e1
Commit
28e6f3e1
authored
1 year ago
by
VANRENTERGHEM Théodore
Browse files
Options
Downloads
Patches
Plain Diff
corrections
parent
ba0b41ba
No related branches found
No related tags found
No related merge requests found
Pipeline
#107852
passed with stage
in 6 minutes and 14 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
R/fct_get_Blocks.R
+4
-4
4 additions, 4 deletions
R/fct_get_Blocks.R
R/fct_visSbm.R
+2
-2
2 additions, 2 deletions
R/fct_visSbm.R
man/visSbm.BipartiteSBM_fit.Rd
+2
-2
2 additions, 2 deletions
man/visSbm.BipartiteSBM_fit.Rd
with
8 additions
and
8 deletions
R/fct_get_Blocks.R
+
4
−
4
View file @
28e6f3e1
...
...
@@ -25,8 +25,8 @@ getBlocks.SimpleSBM_fit <- function(x, node_names, labels = NULL,
}
if
(
is.sbmMatrix
(
node_names
)){
res
<-
data.frame
(
Nodes_names
=
node_names
$
nodes_names
$
col
)
}
else
if
(
is.character
(
node_names
)){
res
<-
data.frame
(
Nodes_names
=
node_names
)
}
else
if
(
is.character
(
node_names
)
|
is.factor
(
node_names
)
){
res
<-
data.frame
(
Nodes_names
=
as.character
(
node_names
)
)
}
else
{
stop
(
"node_names should be a character containing nodes names or an 'sbmMatrix'"
)
}
...
...
@@ -63,8 +63,8 @@ getBlocks.BipartiteSBM_fit <- function(x, node_names,
res
<-
list
(
row
=
data.frame
(
Nodes_names
=
node_names
$
nodes_names
$
row
),
col
=
data.frame
(
Nodes_names
=
node_names
$
nodes_names
$
col
))
}
else
if
(
is.list
(
node_names
)){
res
<-
list
(
row
=
data.frame
(
Nodes_names
=
node_names
$
row
),
col
=
data.frame
(
Nodes_names
=
node_names
$
col
))
res
<-
list
(
row
=
data.frame
(
Nodes_names
=
as.character
(
node_names
$
row
)
)
,
col
=
data.frame
(
Nodes_names
=
as.character
(
node_names
$
col
))
)
}
else
{
stop
(
"node_names should be a list of nodes names or an 'sbmMatrix'"
)
}
...
...
This diff is collapsed.
Click to expand it.
R/fct_visSbm.R
+
2
−
2
View file @
28e6f3e1
...
...
@@ -227,10 +227,10 @@ visSbm.default <- function(x,
#' data_bi <- sbm::fungusTreeNetwork$fungus_tree
#' node_names <- list(row = sbm::fungusTreeNetwork$fungus_names,
#' col = sbm::fungusTreeNetwork$tree_names)
#' my_sbm_bi <- sbm::estimateBipartiteSBM(data_bi
,node_names = node_names
)
#' my_sbm_bi <- sbm::estimateBipartiteSBM(data_bi)
#'
#'
#' visSbm(my_sbm_bi)
#' visSbm(my_sbm_bi
,node_names = node_names
)
#'
#' @export
visSbm.BipartiteSBM_fit
<-
function
(
x
,
...
...
This diff is collapsed.
Click to expand it.
man/visSbm.BipartiteSBM_fit.Rd
+
2
−
2
View file @
28e6f3e1
...
...
@@ -54,9 +54,9 @@ List of parameters
data_bi <- sbm::fungusTreeNetwork$fungus_tree
node_names <- list(row = sbm::fungusTreeNetwork$fungus_names,
col = sbm::fungusTreeNetwork$tree_names)
my_sbm_bi <- sbm::estimateBipartiteSBM(data_bi
,node_names = node_names
)
my_sbm_bi <- sbm::estimateBipartiteSBM(data_bi)
visSbm(my_sbm_bi)
visSbm(my_sbm_bi
,node_names = node_names
)
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment