Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/BioGeoBEARS_basics_v1.R
R version of areas_list_to_states_list_old, which makes
use of cladoRcpp
's
rcpp_areas_list_to_states_list
.
1 2 3 | areas_list_to_states_list_new(areas = c("A", "B", "C"),
maxareas = length(areas), include_null_range = TRUE,
split_ABC = TRUE)
|
areas |
a list of areas (character or number; the function converts these to numbers, starting with 0) |
maxareas |
maximum number of areas in this analyses |
include_null_range |
|
split_ABC |
|
This is the original R version of the function which converts a list of possible areas to a list of all possible states (geographic ranges). This gets slow for large numbers of areas.
The function is mostly replaced by
rcpp_areas_list_to_states_list
in optimized code, but is still used in some places for
display purposes.
states_list
A list of the states.
Go BEARS!
Nicholas J. Matzke matzke@berkeley.edu
http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster https://code.google.com/p/lagrange/
Matzke_2012_IBS
ReeSmith2008
numstates_from_numareas
,
rcpp_areas_list_to_states_list
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | areas = c("A","B","C")
areas_list_to_states_list_new(areas=areas, maxareas=length(areas),
include_null_range=TRUE, split_ABC=TRUE)
areas_list_to_states_list_new(areas=areas, maxareas=length(areas),
include_null_range=TRUE, split_ABC=FALSE)
areas_list_to_states_list_new(areas=areas, maxareas=length(areas),
include_null_range=FALSE, split_ABC=TRUE)
areas_list_to_states_list_new(areas=areas, maxareas=length(areas),
include_null_range=FALSE, split_ABC=FALSE)
areas_list_to_states_list_new(areas=areas, maxareas=2,
include_null_range=TRUE, split_ABC=TRUE)
areas_list_to_states_list_new(areas=areas, maxareas=2,
include_null_range=TRUE, split_ABC=FALSE)
areas_list_to_states_list_new(areas=areas, maxareas=2,
include_null_range=FALSE, split_ABC=TRUE)
areas_list_to_states_list_new(areas=areas, maxareas=2,
include_null_range=FALSE, split_ABC=FALSE)
areas_list_to_states_list_new(areas=areas, maxareas=1,
include_null_range=TRUE, split_ABC=TRUE)
areas_list_to_states_list_new(areas=areas, maxareas=1,
include_null_range=TRUE, split_ABC=FALSE)
areas_list_to_states_list_new(areas=areas, maxareas=1,
include_null_range=FALSE, split_ABC=TRUE)
areas_list_to_states_list_new(areas=areas, maxareas=1,
include_null_range=FALSE, split_ABC=FALSE)
|
Loading required package: rexpokit
Loading required package: cladoRcpp
Loading required package: ape
Loading required package: phylobase
Attaching package: 'phylobase'
The following object is masked from 'package:ape':
edges
[[1]]
[1] "_"
[[2]]
[1] "A"
[[3]]
[1] "B"
[[4]]
[1] "C"
[[5]]
[1] "A" "B"
[[6]]
[1] "A" "C"
[[7]]
[1] "B" "C"
[[8]]
[1] "A" "B" "C"
[[1]]
[1] "_"
[[2]]
[1] "A"
[[3]]
[1] "B"
[[4]]
[1] "C"
[[5]]
[1] "AB"
[[6]]
[1] "AC"
[[7]]
[1] "BC"
[[8]]
[1] "ABC"
[[1]]
[1] "A"
[[2]]
[1] "B"
[[3]]
[1] "C"
[[4]]
[1] "A" "B"
[[5]]
[1] "A" "C"
[[6]]
[1] "B" "C"
[[7]]
[1] "A" "B" "C"
[[1]]
[1] "A"
[[2]]
[1] "B"
[[3]]
[1] "C"
[[4]]
[1] "AB"
[[5]]
[1] "AC"
[[6]]
[1] "BC"
[[7]]
[1] "ABC"
[[1]]
[1] "_"
[[2]]
[1] "A"
[[3]]
[1] "B"
[[4]]
[1] "C"
[[5]]
[1] "A" "B"
[[6]]
[1] "A" "C"
[[7]]
[1] "B" "C"
[[1]]
[1] "_"
[[2]]
[1] "A"
[[3]]
[1] "B"
[[4]]
[1] "C"
[[5]]
[1] "AB"
[[6]]
[1] "AC"
[[7]]
[1] "BC"
[[1]]
[1] "A"
[[2]]
[1] "B"
[[3]]
[1] "C"
[[4]]
[1] "A" "B"
[[5]]
[1] "A" "C"
[[6]]
[1] "B" "C"
[[1]]
[1] "A"
[[2]]
[1] "B"
[[3]]
[1] "C"
[[4]]
[1] "AB"
[[5]]
[1] "AC"
[[6]]
[1] "BC"
[[1]]
[1] "_"
[[2]]
[1] "A"
[[3]]
[1] "B"
[[4]]
[1] "C"
[[1]]
[1] "_"
[[2]]
[1] "A"
[[3]]
[1] "B"
[[4]]
[1] "C"
[[1]]
[1] "A"
[[2]]
[1] "B"
[[3]]
[1] "C"
[[1]]
[1] "A"
[[2]]
[1] "B"
[[3]]
[1] "C"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.