flowLimit: Change the sampled ranged of a specific flow

Description Usage Arguments Details Value Author(s) Examples

View source: R/flowLimit.R

Description

If a flow seems to be falling outside the scope of your required work, a restriction can be placed on it to allow only required values to be considered in processing. When calling the function, the user is required to enter the list of LIM networks created in the '(limListGen)' function. Following that, the flow name must be specified. Thereafter, a minimum value and a maximum value can be specified to create a new list of matrices that adhere to the restrictions. (step 3) Alternatively, just a minimum value can be entered to create a list of matrices where all values above the minimum value for the specified flow are stored into a new list. (step 1) This works the same for entering just a maximum value, where all values for the specified flow below the maximum value entered are stored into a new list. (step 2) When entering just one value, the other value can be left blank or declared 'NULL' The output created will be a new list of LIM networks according to the contstraints required.

Usage

1
flowLimit(limfile,limList,flow,minVal,maxVal)

Arguments

limfile

This is the user generated LIM file created for analysis purposes.

limList

The list of networks solved using LIM (limListGen)

flow

This is the flow which is being restricted/limited

minVal

This is the minimum value to discard all values below

maxVal

This is the maximum value to discard all values above

Details

If certain flows need to be restricated due to some values not being correct, they can be discared here by selecting a range of values to keep for processing.

Value

[[1]]A matrix of all flow values, which can be used for visualisation

[[2]] A list of LIM networks

Author(s)

Ruchit Mahabir

Christopher Waspe

Ursula Scharler

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
##------------------------------------------------------------##
## A simple four node network                                 ##
##------------------------------------------------------------##

viableNodesRangeTest <- flowLimit(limfile = N4,limList = N4LIM,
flow = "Pgraz",minVal = 50, maxVal = 300)
viableNodesMinTest <- flowLimit(limfile = N4,limList = N4LIM,
flow = "Pgraz",minVal = 50)
viableNodesMaxTest <- flowLimit(limfile = N4,limList = N4LIM,
flow = "Pgraz",maxVal = 300)

FlowCAr documentation built on Sept. 30, 2019, 5:04 p.m.