compute_risk_score: Calculates the sum of risk scores from a list of H-phrases...

View source: R/match_ppdb.R

compute_risk_scoreR Documentation

Calculates the sum of risk scores from a list of H-phrases and expands the table

Description

Calculates the sum of risk scores from a list of H-phrases and expands the table

Usage

compute_risk_score(table, var_name)

Arguments

table

Dataframe with H-phrases on product level.

var_name

Name of the variable that contains the information (string) on H-phrases. For example "H317; H411" or "H410, H411".

Value

Adds a variable indicating the sum of risk scores needed to compute the Pesticide Load Indicator Check national pesticide databases for information on product labels of pesticides (information on H-phrases of each product).


PesticideLoadIndicator documentation built on Oct. 24, 2022, 5:07 p.m.