Project class
Project class
Definition for the Project class.
idcharacter identifier.
site_idscharacter vector
site_descriptionscharacter vector
feature_idscharacter vector
feature_html_idscharacter vector
feature_descriptionscharacter vector
action_idscharacter vector
action_colorscharacter vector of colors for each action.
action_descriptionscharacter vector
site_datadata.frame object.
feature_datadata.frame object.
feasibility_datadata.frame object.
site_geometrysf::st_sf() object.
parameterslist of parameters.
settingslist of Parameter objects.
consequence_datalist of data.frame objects.
site_cost_headerscharacter vector with names.
site_status_headercharacter value.
action_feasibility_headerscharacter vector with names.
feature_goal_headercharacter value.
feature_weight_headercharacter value.
consequence_action_headerscharacter named vector.
consequence_feature_headerscharacter named vector.
new()Create a Project object.
Project$new(
id,
site_ids,
site_descriptions,
site_geometry,
feature_ids,
feature_descriptions,
action_ids,
action_descriptions,
site_data,
feature_data,
feasibility_data,
consequence_data,
parameters
)idcharacter value.
site_idscharacter vector
site_descriptionscharacter vector
site_geometrysf::st_sf() object.
feature_idscharacter vector
feature_descriptionscharacter vector
action_idscharacter vector
action_descriptionscharacter vector
site_datadata.frame object.
feature_datadata.frame object.
feasibility_datadata.frame object.
consequence_datalist of data.frame objects.
parameterslist of parameters.
A new Project object.
new()Create a Project object.
Project$new(
id,
site_ids,
site_descriptions,
site_geometry,
feature_ids,
feature_descriptions,
action_ids,
action_descriptions,
site_data,
feature_data,
feasibility_data,
consequence_data,
parameters
)idcharacter value.
site_idscharacter vector
site_descriptionscharacter vector
site_geometrysf::st_sf() object.
feature_idscharacter vector
feature_descriptionscharacter vector
action_idscharacter vector
action_descriptionscharacter vector
site_datadata.frame object.
feature_datadata.frame object.
feasibility_datadata.frame object.
consequence_datalist of data.frame objects.
parameterslist of parameters.
A new Project object.
print()Print the object.
Project$print(...)...not used.
print()Print the object.
Project$print(...)...not used.
repr()Generate a character summarizing the representation of the object.
Project$repr()character value.
repr()Generate a character summarizing the representation of the object.
Project$repr()character value.
get_site_ids()Get site identifiers.
Project$get_site_ids()character vector.
get_site_ids()Get site identifiers.
Project$get_site_ids()character vector.
get_feature_ids()Get feature identifiers.
Project$get_feature_ids()character vector.
get_feature_ids()Get feature identifiers.
Project$get_feature_ids()character vector.
get_feature_ids_from_html_id()Get feature HTML identifiers.
Project$get_feature_ids_from_html_id(feature_html_id)feature_html_idcharacter vector of feature identifiers.
character vector.
get_feature_ids_from_html_id()Get feature HTML identifiers.
Project$get_feature_ids_from_html_id(feature_html_id)feature_html_idcharacter vector of feature identifiers.
character vector.
get_action_ids()Get action identifiers.
Project$get_action_ids()character vector.
get_action_ids()Get action identifiers.
Project$get_action_ids()character vector.
get_feature_goal()Get feature goal.
Project$get_feature_goal(feature_id)feature_idcharacter identifier for feature
numeric value.
get_feature_goal()Get feature goal.
Project$get_feature_goal(feature_id)feature_idcharacter identifier for feature
numeric value.
get_feature_weight()Get feature weight.
Project$get_feature_weight(feature_id)feature_idcharacter identifier for feature
numeric value.
get_feature_weight()Get feature weight.
Project$get_feature_weight(feature_id)feature_idcharacter identifier for feature
numeric value.
get_site_statuses()Get colors for actions.
Project$get_site_statuses()action_idcharacter identifier for action.
character vector.
get_site_statuses()Get colors for actions.
Project$get_site_statuses()action_idcharacter identifier for action.
character vector.
get_action_costs()Get cost data for implementing an action within each site.
Project$get_action_costs(action_id)action_idcharacter identifier for action.
numeric vector.
get_action_costs()Get cost data for implementing an action within each site.
Project$get_action_costs(action_id)action_idcharacter identifier for action.
numeric vector.
get_action_feasibility()Get feasibility data for implementing an action within each site.
Project$get_action_feasibility(action_id)action_idcharacter identifier for action.
logical vector.
get_action_feasibility()Get feasibility data for implementing an action within each site.
Project$get_action_feasibility(action_id)action_idcharacter identifier for action.
logical vector.
get_consequences_for_feature()Get consequence data for features.
Project$get_consequences_for_feature(action_id, feature_id)action_idcharacter identifier for action.
feature_idcharacter identifier for feature.
numeric vector.
get_consequences_for_feature()Get consequence data for features.
Project$get_consequences_for_feature(action_id, feature_id)action_idcharacter identifier for action.
feature_idcharacter identifier for feature.
numeric vector.
get_min_budget()Get the cost of the cheapest solution.
Project$get_min_budget()numeric value.
get_min_budget()Get the cost of the cheapest solution.
Project$get_min_budget()numeric value.
get_max_budget()Get the cost of the most expensive solution.
Project$get_max_budget()numeric value.
get_max_budget()Get the cost of the most expensive solution.
Project$get_max_budget()numeric value.
get_max_feature_consequence()Get the highest amount for each feature.
Project$get_max_feature_consequence()data.frame containing a feature_id and amount columns.
get_max_feature_consequence()Get the highest amount for each feature.
Project$get_max_feature_consequence()data.frame containing a feature_id and amount columns.
get_current_feature_consequence()Get the current expected amount for each feature.
Project$get_current_feature_consequence()data.frame containing a feature_id and amount columns.
get_current_feature_consequence()Get the current expected amount for each feature.
Project$get_current_feature_consequence()data.frame containing a feature_id and amount columns.
get_map_layers()Get layer names for rendering data on map.
Project$get_map_layers()character vector of layer names.
get_map_layers()Get layer names for rendering data on map.
Project$get_map_layers()character vector of layer names.
get_pu_data()Get planning unit data for optimization.
Project$get_pu_data()data.frame object.
get_pu_data()Get planning unit data for optimization.
Project$get_pu_data()data.frame object.
get_current_status_data()Get status data for optimization.
Project$get_current_status_data()data.frame object.
get_current_status_data()Get status data for optimization.
Project$get_current_status_data()data.frame object.
get_zone_data()Get zone data for optimization.
Project$get_zone_data()data.frame object.
get_zone_data()Get zone data for optimization.
Project$get_zone_data()data.frame object.
get_goal_data()Get goal data for optimization.
Project$get_goal_data()data.frame object.
get_goal_data()Get goal data for optimization.
Project$get_goal_data()data.frame object.
get_weight_data()Get weight data for optimization.
Project$get_weight_data()data.frame object.
get_weight_data()Get weight data for optimization.
Project$get_weight_data()data.frame object.
get_locked_data()Get locked data for optimization.
Project$get_locked_data()data.frame object.
get_locked_data()Get locked data for optimization.
Project$get_locked_data()data.frame object.
get_bbox()Get the bounding box.
Project$get_bbox(expand = FALSE)expandFALSE should the bounding box be expanded by 10%?
list object with "xmin", "xmax", "ymin", and "ymax"
elements.
get_bbox()Get the bounding box.
Project$get_bbox(expand = FALSE)expandFALSE should the bounding box be expanded by 10%?
list object with "xmin", "xmax", "ymin", and "ymax"
elements.
get_solution_settings_data()Get data for rendering the solution settings widget.
Project$get_solution_settings_data()list object.
get_solution_settings_data()Get data for rendering the solution settings widget.
Project$get_solution_settings_data()list object.
get_goals_settings_data()Get data for rendering widget to specify goals.
Project$get_goals_settings_data()list object.
get_goals_settings_data()Get data for rendering widget to specify goals.
Project$get_goals_settings_data()list object.
get_weights_settings_data()Get data for rendering widget to specify weights.
Project$get_weights_settings_data()list object.
get_weights_settings_data()Get data for rendering widget to specify weights.
Project$get_weights_settings_data()list object.
set_feature_goal()Set goal for a feature.
Project$set_feature_goal(feature_id, value)feature_idcharacter value containing the feature identifier.
valuenumeric value containing the new goal.
set_feature_goal()Set goal for a feature.
Project$set_feature_goal(feature_id, value)feature_idcharacter value containing the feature identifier.
valuenumeric value containing the new goal.
set_feature_weight()Set weight for a feature.
Project$set_feature_weight(feature_id, value)feature_idcharacter value containing the feature identifier.
valuenumeric value containing the new weight.
set_feature_weight()Set weight for a feature.
Project$set_feature_weight(feature_id, value)feature_idcharacter value containing the feature identifier.
valuenumeric value containing the new weight.
set_site_data()Set site data.
Project$set_site_data(x)xdata.frame containing new data.
set_site_data()Set site data.
Project$set_site_data(x)xdata.frame containing new data.
set_feature_data()Set feature data.
Project$set_feature_data(x)xdata.frame containing new data.
set_feature_data()Set feature data.
Project$set_feature_data(x)xdata.frame containing new data.
set_feasibility_data()Set feasibility data.
Project$set_feasibility_data(x)xdata.frame containing new data.
set_feasibility_data()Set feasibility data.
Project$set_feasibility_data(x)xdata.frame containing new data.
set_consequence_data()Set consequence data.
Project$set_consequence_data(x, action_id)xdata.frame containing new data.
action_idcharacter identifier for action.
set_consequence_data()Set consequence data.
Project$set_consequence_data(x, action_id)xdata.frame containing new data.
action_idcharacter identifier for action.
render_on_map()Render on map.
Project$render_on_map(map, data = "location", group = "sites")mapleaflet::leaflet() object.
datacharacter name of dataset to show.
Argument must be a valid layer name (see self$get_map_layers()).
groupcharacter group name. Defaults to "sites".
leaflet::leaflet() map.
render_on_map()Render on map.
Project$render_on_map(map, data = "location", group = "sites")mapleaflet::leaflet() object.
datacharacter name of dataset to show.
Argument must be a valid layer name (see self$get_map_layers()).
groupcharacter group name. Defaults to "sites".
leaflet::leaflet() map.
render_site_data()Render site data.
Project$render_site_data(height = "100%", width = "100%")heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_site_data()Render site data.
Project$render_site_data(height = "100%", width = "100%")heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_feature_data()Render feature data.
Project$render_feature_data(height = "100%", width = "100%")heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_feature_data()Render feature data.
Project$render_feature_data(height = "100%", width = "100%")heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_feasibility_data()Render feasibility data.
Project$render_feasibility_data(height = "100%", width = "100%")heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_feasibility_data()Render feasibility data.
Project$render_feasibility_data(height = "100%", width = "100%")heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_consequence_data()Render consequence data.
Project$render_consequence_data(action_id, height = "100%", width = "100%")action_idcharacter identifier for action.
heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
render_consequence_data()Render consequence data.
Project$render_consequence_data(action_id, height = "100%", width = "100%")action_idcharacter identifier for action.
heightcharacter/numeric CSS measurement value.
Default to "100%".
widthcharacter/numeric CSS measurement value.
Default to "100%".
rhandsontable::rhandsontable object.
write()Write the data to disk.
Project$write(workbook_path, geometry_path)workbook_pathcharacter file path.
geometry_pathcharacter file path.
write()Write the data to disk.
Project$write(workbook_path, geometry_path)workbook_pathcharacter file path.
geometry_pathcharacter file path.
clone()The objects of this class are cloneable with this method.
Project$clone(deep = FALSE)deepWhether to make a deep clone.
clone()The objects of this class are cloneable with this method.
Project$clone(deep = FALSE)deepWhether to make a deep clone.