Man pages for langfob/bdpg
Package For Building and Testing Biodiversity Problem Generators

act_on_loaded_existing_tzar_runExecute a single action based on tzar repetition values in...
add_missing_PU_rows_to_PU_Count_dataframeAdd missing PUs to PU_Count data frame
always_set_new_or_forced_rand_seedAlways set a seed, either by generating a new one or reusing...
apply_const_error_to_spp_occupancy_dataApply constant error to spp occ data
apply_error_to_spp_occupancy_dataApply error to species occupancy data.
assert_edge_list_does_not_violate_assumptionsAssert edge list does not violate assumptions
bdpgbdpg.
build_PU_spp_pair_indices_from_occ_matrixBuild PU spp pair indices from occ matrix
build_topdir_nameBuild top directory name
ccBipccBip
ccLowDotccLowDot
ccTopDotccTopDot
check_for_imperfect_wrapSee whether wrapping species fully contain base species
choose_a_best_solution_ID_according_to_marxanChoose a best solution ID according to marxan
compute_and_save_dist_and_network_metrics_for_probCompute and save the distribution and network metrics for the...
compute_and_set_obj_checksumConvenience function for computing the object's checksum and...
compute_and_verify_rep_scores_wrtCompute representation scores for candidate solution
compute_confusion_matrix_based_scoresCompute confusion matrix-based scores for candidate solution
compute_igraph_related_network_measuresCompute igraph-related network measures
compute_marxan_solution_scoresCompute marxan solution scores
compute_marxan_solution_scores_wrt_COR_or_APP_reps_and_costsCompute rep and cost values of marxan solutions with respect...
compute_marxan_species_penalty_factorCompute marxan species penalty factor
compute_network_measures_using_bipartite_packageCompute bipartite network measures using bipartite package
compute_num_spp_covered_by_solutionCompute number of species whose targets are met by a...
compute_obj_checksumCompute a checksum for the object
compute_rep_fractionCompute species representation fractions achieved
compute_solution_costCompute cost of given solution vector of PUs to include
create_adj_matrix_with_spp_rows_vs_PU_colsCreate adjacency matrix with species rows vs planning unit...
create_allowable_size_Xu_problem_from_scratchGenerate a Xu problem from scratch but insure it's less than...
create_and_init_APP_bdprobCreate and initialize apparent bdproblem from a correct...
create_APP_prob_info_by_adding_error_to_spp_occ_dataAdd error to the species occupancy data and save to...
create_dirs_for_APP_probCreate directories for this apparent problem.
create_eligible_PU_setCreate set of planning units eligible for adding species into
create_nodes_data_structureCreate nodes data structure
create_PU_spp_pair_indicesConvert edge list to PU/spp table
create_PU_spp_pair_namesCreate PU spp pair indices
create_RSprob_dir_and_subdirsCreate directories for an RS problem
create_RSrunCreate an RSrun
create_RSrun_dir_and_subdirsCreate directories for an RS run
create_wrapping_PU_spp_tableCreate wrapping PU/species table
create_Xu_graphCreate Xu graph
create_Xu_problem_from_scratchGenerate a Xu problem from scratch
create_Xu_problem_from_scratch_given_4_Xu_metaparamsGenerate a Xu problem from scratch
create_Xu_problem_from_scratch_given_paramsGenerate a Xu problem from scratch given parameters
create_Xu_problem_from_scratch_not_using_4_Xu_metaparamscreate_Xu_problem_from_scratch_not_using_4_Xu_metaparams
derive_Xu_control_parametersDerive full Xu control params from 4 base params
do_APP_simple_richness_analysis_and_outputRun reserve selector on APP problem and write output from all...
do_COR_simple_richness_analysis_and_outputRun simple_richness on COR problem and write output from all...
do_Greedy_analysis_and_outputRun greedy reserve selector on bd problem and write output...
do_gurobi_analysis_and_outputRun reserve selector on bd problem and write output from all...
do_marxan_analysis_and_outputRun marxan on bd problem and write output from all analysis
do_rs_analysis_and_outputRun reserve selector(s) on bdproblem and write output from...
do_sanity_checksDo sanity checks on parameters for wrapping a biodiversity...
EFEvaluation Function to be passed to optim()
find_best_marxan_solutionsFind best marxan solutions
find_lognormal_to_wrap_around_XuFind lognormal to wrap around Xu problem
fix_0_length_list_elementsReturn NA for any given value whose length is 0
gen_11_variants_mixing_FP_FN_and_cost_errorGenerate 11 basic variants of a problem
gen_20_basic_variants_including_cost_errorGenerate 20 basic variants of a problem
gen_4_basic_variantsCreate 1 of each of the 4 types of problems and run reserve...
gen_4_simple_random_variants_mixing_FP_FN_and_cost_errorGenerate 4 simple random variants of a problem
gen_6_basic_variantsGenerate 6 basic variants of a problem
gen_bdprobGenerate a base or wrapped biodiversity problem
gen_multi_bdprobGenerate a new bd problem by modifying or combining existing...
gen_new_seed_from_cur_timeGenerate a new random seed based on the current time
gen_rounded_abundancesGenerate rounded abundances
gen_single_bdprob_APPGenerate a single biodiversity problem with error added to it
gen_single_bdprob_CORGenerate a single correct biodiversity problem from scratch...
gen_single_bdprob_COR_from_scratch_or_Xu_bench_fileGenerate a single biodiversity problem
gen_single_bdprob_WRAPGenerate a single wrapped biodiversity problem from a given...
gen_wrapped_bdprob_CORGenerate a correct wrapped Xu biodiversity problem from a...
get_base_cor_bdprob_for_given_app_bdprobGet the COR bdprob whose UUID is the base UUID for the given...
get_bdprob_from_rds_fileLoad a bdprob from an R rds output file, possibly specified...
get_current_osGet name and version number of current operating system as a...
get_forced_seed_value_if_necessaryGet forced seed value if necessary
get_integerize_functionGet function to use when converting numeric values to...
get_marxan_solution_choice_stringGet marxan solution choice string
get_RSprob_path_networksGet path to networks directory of RS problem
get_RSprob_path_plotsGet path to plots directory of RS problem
get_RSprob_path_topdirBuild top directory path for RS problem
get_UUID_from_file_pathGet the probable UUID of an object from its file name
init_for_bdpgInitialize for biodiversity problem generation
init_object_graph_dataCompute graph metrics for an RSprob if requested and set the...
link_nodes_between_groupsLink nodes between groups
link_nodes_within_groupsLink nodes within groups
list_as_data_frame_with_0_length_vals_replaced_by_NAConvert list to data frame with 0 length values replaced by...
list_with_0_length_vals_replaced_by_NAConvert list to a new list with 0 length values replaced by...
load_existing_tzar_run_from_glassLoad an existing tzar run from glass
load_marxan_best_df_from_file_and_sort_and_add_missing_PUsLoad marxan best data frame from file, sort, add missing PUs
load_marxan_mvbest_df_from_file_and_sort_by_CFLoad marxan mvbest df from file and sort by CF
load_marxan_solutionsmatrix_and_add_missing_PUsLoad marxan solutions matrix from file, sort, add missing PUs
load_marxan_ssoln_df_from_file_and_sort_by_PULoad marxan's summed solutions vector from its marxan output...
look_up_object_by_UUIDSearch the set of files for a file name containing the UUID...
make_sure_no_spp_eradicated_by_setting_FNsMake sure no species is eradicated by setting false negative...
make_sure_that_cor_bdprob_is_base_of_app_bdprobMake sure that the correct bdprob is the base for the given...
match_FP_and_FN_counts_to_smaller_of_the_twoMatch FP and FN counts to smaller of the two
options_are_legal_for_single_bdprob_WRAPCheck whether options for wrapping have legal values
plot_degree_and_abundance_dists_for_node_graphPlot degree and abundance distributions for node graph
plot_final_degree_dist_for_node_graphPlot final degree distribution for node graph
plot_incremental_marxan_summed_solution_representationsPlot incremental marxan summed solution representations
plot_incremental_marxan_summed_solution_reps_for_COR_and_APPPlot how marxan is actually doing vs. how marxan thinks it's...
plot_marxan_best_solution_scores_COR_and_APPPlot marxan best solution scores COR and APP
plot_rank_abundance_dist_for_node_graphPlot rank abundance distribution for node graph
read_marxan_output_filesRead various marxan outputs into this program.
read_Xu_problem_from_Xu_fileRead a Xu benchmark problem formatted according to the format...
redundancyLatapy et al redundancy measure
remove_base_spp_abundances_from_wrapping_distributionRemove base problem's species from the wrapping problems set...
repro_do_Greedy_analysis_and_outputReproduce greedy reserve selection run
repro_RSrunCreate an RSrun
run_gurobiRun gurobi linear programming optimizer
run_marxanRun marxan
safe_sampleSafe version of R sample function
save_obj_with_checksumSave object with checksum
save_rsprobSave bd problem to disk
save_rsprob_results_dataSave problem description results for a Xu_bd_problem
search_for_approximating_lognormalSearch for approximating lognormal
see_if_marxan_best_was_actually_bestVerify whether the solution marxan chose as best was actually...
see_if_there_are_any_duplicate_linksSee if there are any duplicate links
set_const_FP_and_FN_ratesSet constant FP and FN rates
set_marxan_controls_and_run_marxanSet marxan controls and run marxan
set_new_or_forced_rand_seed_if_necessarySet a new or forced random seed if caller specifies that
set_seed_if_necessary_helperHelper function for setting a seed when necessary
set_up_for_and_run_gurobiSet up for and run gurobi
set_up_for_and_run_gurobi_APPSet up for and run gurobi for APP problem
set_up_for_and_run_gurobi_CORSet up for and run gurobi for COR problem
set_up_for_and_run_marxanSet up for and run marxan
set_up_for_and_run_marxan_APPSet up for and run marxan for APP problem
set_up_for_and_run_marxan_CORSet up for and run marxan for COR problem
set_up_for_and_run_simple_richnessSet up for and run simple_richness
set_up_for_and_run_simple_richness_APPSet up for and run simple_richness for APP problem
set_up_for_and_run_simple_richness_CORSet up for and run simple_richness for COR problem
single_action_using_tzar_repsExecute a single action based on tzar repetition values in...
sort_within_rowsSort a 2 column matrix within rows
std_param_defnsStandardized parameter definitions for reuse across all...
stop_bdpgWrapper for stop function to allow extra controls over...
strip_trailing_slashStrip Trailing Slash Off Of Path If There Is One
summarize_and_plot_graph_and_distribution_structure_informationCompute final PU and species counts and plot degree and...
summarize_pu_and_spp_dist_data_from_marxan_puvspr_input_fileSummarize PU and spp dist data from marxan puvspr input file
summarize_pu_and_spp_dist_data_from_pu_spp_amt_dfCompute distributions for planning units and species from...
touchImitate unix touch function to create an empty file.
trim_abundancesDrop spp from abund dist if on too many or too few patches
validate_wrapValidate the wrapping of a bdproblem
value_or_1_if_nullGet parameter value that should be integer and return 1 if...
value_or_FALSE_if_nullGet parameter value that should be boolean and return FALSE...
vbValidate input as boolean and replace with default on empty...
verify_that_generated_solution_really_is_a_solutionVerify that solution does cover all species
vnValidate input as numeric and replace with default on empty...
wrap_abundance_dist_around_Xu_problemWrap abundance distribution around Xu problem
wrap_abundances_around_eligible_setWrap abundances around eligible set
write_all_marxan_input_filesWrite all marxan input files
write_all_marxan_input_files_from_vectorsWrite all marxan input files except bound.dat and input.dat...
write_marxan_pu.dat_input_fileWrite marxan planning units input file (pu.dat) using...
write_marxan_pu.dat_input_file_from_vectorsWrite marxan pu.dat from vectors
write_marxan_puvspr.dat_input_fileWrite marxan puvspr input file
write_marxan_spec.dat_input_fileWrite species input file (spec.dat) using constant values for...
write_marxan_spec.dat_input_file_from_vectorsWrite marxan spec.dat from vectors
write_network_to_marxan_filesWrite network to marxan input file
write_results_to_filesWrite results to files
langfob/bdpg documentation built on Dec. 8, 2022, 5:33 a.m.