Returns recognised water quality variables. If codes = NULL the function returns all recognised variable names. Otherwise it looks up the matching variables from codes. Whether or not the codes are compressed or expanded is unimportant.

lookup_variables(
  codes = NULL,
  messages = getOption("wqbc.messages", default = TRUE)
)

Arguments

codes

An optional character vector of codes to look up variables.

messages

A flag indicating whether to print messages.

Examples

lookup_variables()
#>   [1] "1,1-Dichloroethylene"                                                              
#>   [2] "1,1,2-Trichloroethene (Trichloroethylene) Total"                                   
#>   [3] "1,1,2,2-Tetrachloroethene (Tetrachloroethylene, Perchlorethylene) Total"           
#>   [4] "1,2-Dichlorobenzene Total"                                                         
#>   [5] "1,2-Dichloroethane Total"                                                          
#>   [6] "1,2-Propylene glycol Total"                                                        
#>   [7] "1,2,3-Trichlorobenzene Total"                                                      
#>   [8] "1,2,3,4-Tetrachlorobenzene Total"                                                  
#>   [9] "1,2,4-Trichlorobenzene Total"                                                      
#>  [10] "1,3-Dichlorobenzene Total"                                                         
#>  [11] "1,4-Dichlorobenzene Total"                                                         
#>  [12] "3-Lodo-2-propynl butylcarbamate (IPBC) Total"                                      
#>  [13] "Acenaphthene Total"                                                                
#>  [14] "Aldicarb Total"                                                                    
#>  [15] "Alkalinity ( CaCO3) Total"                                                         
#>  [16] "Alkalinity pH 4.5/4.2"                                                             
#>  [17] "Alkalinity Total"                                                                  
#>  [18] "Aluminum Dissolved"                                                                
#>  [19] "Aluminum Total"                                                                    
#>  [20] "Ammonia Dissolved"                                                                 
#>  [21] "Ammonia Total"                                                                     
#>  [22] "Antimony (III) Total"                                                              
#>  [23] "Arsenic Dissolved"                                                                 
#>  [24] "Arsenic Total"                                                                     
#>  [25] "Atrazine"                                                                          
#>  [26] "Barium Dissolved"                                                                  
#>  [27] "Barium Total"                                                                      
#>  [28] "Benzene Total"                                                                     
#>  [29] "Benzo(a)pyrene Total"                                                              
#>  [30] "Beryllium Total"                                                                   
#>  [31] "Biochemical Oxygen Demand"                                                         
#>  [32] "Boron Dissolved"                                                                   
#>  [33] "Boron Total"                                                                       
#>  [34] "Bromacil Total"                                                                    
#>  [35] "Bromoxynil Total"                                                                  
#>  [36] "Cadmium Dissolved"                                                                 
#>  [37] "Cadmium Total"                                                                     
#>  [38] "Calcium Dissolved"                                                                 
#>  [39] "Captan Total"                                                                      
#>  [40] "Carbofuran Total"                                                                  
#>  [41] "Chlorate Dissolved"                                                                
#>  [42] "Chloride Dissolved"                                                                
#>  [43] "Chloride Total"                                                                    
#>  [44] "Chlorine Residual Total"                                                           
#>  [45] "Chlorite Dissolved"                                                                
#>  [46] "Chlorophenol, 2,3-DCP Total"                                                       
#>  [47] "Chlorophenol, 2,3,4-TCP Total"                                                     
#>  [48] "Chlorophenol, 2,3,4,5-TTCP Total"                                                  
#>  [49] "Chlorophenol, 2,3,4,5,6-PCP Total"                                                 
#>  [50] "Chlorophenol, 2,3,4,6-TTCP Total"                                                  
#>  [51] "Chlorophenol, 2,3,5-TCP Total"                                                     
#>  [52] "Chlorophenol, 2,3,5,6-TTCP Total"                                                  
#>  [53] "Chlorophenol, 2,3,6-TCP Total"                                                     
#>  [54] "Chlorophenol, 2,4-DCP Total"                                                       
#>  [55] "Chlorophenol, 2,4,5-TCP Total"                                                     
#>  [56] "Chlorophenol, 2,4,6-TCP Total"                                                     
#>  [57] "Chlorophenol, 2,5-DCP Total"                                                       
#>  [58] "Chlorophenol, 2,6-DCP Total"                                                       
#>  [59] "Chlorophenol, 3,4-DCP Total"                                                       
#>  [60] "Chlorophenol, 3,4,5-TCP Total"                                                     
#>  [61] "Chlorophenol, 3,5-DCP Total"                                                       
#>  [62] "Chlorophenol, DCP"                                                                 
#>  [63] "Chlorophenol, TCP"                                                                 
#>  [64] "Chlorophenol, TTCP"                                                                
#>  [65] "Chlorophyll A"                                                                     
#>  [66] "Chlorothalonil (2,4,5,6-Tetrachloro-1,3-benzenecarbonitrile, Daconil) Total"       
#>  [67] "Chlorpyrifos Total"                                                                
#>  [68] "Chromium Dissolved"                                                                
#>  [69] "Chromium hexavalent Total"                                                         
#>  [70] "Chromium Total"                                                                    
#>  [71] "Chromium trivalent Total"                                                          
#>  [72] "Chrysene"                                                                          
#>  [73] "Cobalt Dissolved"                                                                  
#>  [74] "Cobalt Total"                                                                      
#>  [75] "Coliforms Fecal"                                                                   
#>  [76] "Colour Apparent"                                                                   
#>  [77] "Colour True"                                                                       
#>  [78] "Conductivity Specific"                                                             
#>  [79] "Conductivity Specific - Field"                                                     
#>  [80] "Copper Dissolved"                                                                  
#>  [81] "Copper Total"                                                                      
#>  [82] "Cyanazine Total"                                                                   
#>  [83] "Cyanide Dissolved"                                                                 
#>  [84] "Cyanide Total"                                                                     
#>  [85] "Cyanide weak acid dissociable Total"                                               
#>  [86] "Dehydroabietic acid (DHA) Total"                                                   
#>  [87] "Deltamethrin Total"                                                                
#>  [88] "Di-(2-ethylhexyl) phthalate (DEHP) Total"                                          
#>  [89] "Di-n-butyl tin Total"                                                              
#>  [90] "Dibutyl phthalate (DBP, di-n-butylphthalate) Total"                                
#>  [91] "Dicamba Total"                                                                     
#>  [92] "Dichlorobromomethane (Bromodichloromethane)"                                       
#>  [93] "Dichloromethane (Methylene chloride) Total"                                        
#>  [94] "Dichlorophenoxyacetic acid (2,4-D) Total"                                          
#>  [95] "Diclofop-methyl Total"                                                             
#>  [96] "Didecyl dimethyl ammonium chloride (DDAC) Total"                                   
#>  [97] "Dimethoate Total"                                                                  
#>  [98] "Dinoseb Total"                                                                     
#>  [99] "Dissolved Organic Carbon"                                                          
#> [100] "Dissolved Solids (Filterable Residue)"                                             
#> [101] "Enterococci"                                                                       
#> [102] "Escherichia coli"                                                                  
#> [103] "Ethinylestradiol 17a Total"                                                        
#> [104] "Ethylbenzene Total"                                                                
#> [105] "Ethylene glycol Total"                                                             
#> [106] "Extinction Depth"                                                                  
#> [107] "Fluorene Total"                                                                    
#> [108] "Fluoride Dissolved"                                                                
#> [109] "Fluoride Total"                                                                    
#> [110] "Hardness Dissolved"                                                                
#> [111] "Hardness Total"                                                                    
#> [112] "Hexachlorobenzene"                                                                 
#> [113] "Hexachlorobutadiene Total"                                                         
#> [114] "Hexachlorocyclohexane (Lindane) Total"                                             
#> [115] "Iron Dissolved"                                                                    
#> [116] "Iron Total"                                                                        
#> [117] "Lead Dissolved"                                                                    
#> [118] "Lead Total"                                                                        
#> [119] "Linuron Total"                                                                     
#> [120] "Lithium Total"                                                                     
#> [121] "Malathion Total"                                                                   
#> [122] "Manganese Dissolved"                                                               
#> [123] "Manganese Total"                                                                   
#> [124] "Mercury Dissolved"                                                                 
#> [125] "Mercury Methyl"                                                                    
#> [126] "Mercury Total"                                                                     
#> [127] "Methyl tertiary-butyl ether Total"                                                 
#> [128] "Methylchlorophenoxy acetic acid (4-chloro-2-methylphenoxy acetic acid; MCPA) Total"
#> [129] "Metolachlor Total"                                                                 
#> [130] "Metribuzin Total"                                                                  
#> [131] "Molybdenum Dissolved"                                                              
#> [132] "Molybdenum Total"                                                                  
#> [133] "Monochlorobenzene Total"                                                           
#> [134] "Naphthalene D8"                                                                    
#> [135] "Naphthalene Total"                                                                 
#> [136] "Nickel Dissolved"                                                                  
#> [137] "Nickel Total"                                                                      
#> [138] "Nitrate Nitrite"                                                                   
#> [139] "Nitrate Nitrite Dissolved"                                                         
#> [140] "Nitrate Soluble"                                                                   
#> [141] "Nitrate Total"                                                                     
#> [142] "Nitrite Total"                                                                     
#> [143] "Nitrogen Dissolved"                                                                
#> [144] "Nitrogen Total"                                                                    
#> [145] "Organic Carbon Total"                                                              
#> [146] "Oxygen Dissolved"                                                                  
#> [147] "Oxygen Dissolved Field"                                                            
#> [148] "Pentachlorobenzene Total"                                                          
#> [149] "pH"                                                                                
#> [150] "Phenanthrene Total"                                                                
#> [151] "Phosphorus Dissolved"                                                              
#> [152] "Phosphorus Ortho"                                                                  
#> [153] "Phosphorus Total"                                                                  
#> [154] "Picloram Total"                                                                    
#> [155] "Polychlorinated Biphenyls (PCB) Total"                                             
#> [156] "Polycyclic Aromatic Hydrocarbons (Carcinogenic) Total"                             
#> [157] "Pseudomonas Aeruginosa"                                                            
#> [158] "Quinoline Total"                                                                   
#> [159] "Salinity"                                                                          
#> [160] "Selenium Dissolved"                                                                
#> [161] "Selenium Total"                                                                    
#> [162] "Silver Dissolved"                                                                  
#> [163] "Silver Total"                                                                      
#> [164] "Simazine Total"                                                                    
#> [165] "Strontium Total"                                                                   
#> [166] "Styrene Total"                                                                     
#> [167] "Sulphate Dissolved"                                                                
#> [168] "Sulphate Total"                                                                    
#> [169] "Temperature"                                                                       
#> [170] "Temperature - Field"                                                               
#> [171] "Tetrachloromethane (carbon tetrachloride) Total"                                   
#> [172] "Thallium Dissolved"                                                                
#> [173] "Thallium Total"                                                                    
#> [174] "Tin, Tributyltin Total"                                                            
#> [175] "Toluene Total"                                                                     
#> [176] "Triallate Total"                                                                   
#> [177] "Tribromomethane (Bromoform)"                                                       
#> [178] "Trichloromethane (chloroform) Total"                                               
#> [179] "Trifluralin Total"                                                                 
#> [180] "Turbidity"                                                                         
#> [181] "Turbidity - Field"                                                                 
#> [182] "Uranium Dissolved"                                                                 
#> [183] "Uranium Total"                                                                     
#> [184] "Vanadium Total"                                                                    
#> [185] "Vinyl Chloride"                                                                    
#> [186] "Xylene Total"                                                                      
#> [187] "Zinc Dissolved"                                                                    
#> [188] "Zinc Total"                                                                        
lookup_variables(c("AL-D", "EMS_AS_T", "B--T", "KRYP"), messages = TRUE)
#> Replaced 'AL-D' with 'Aluminum Dissolved', 'AS-T' with 'Arsenic Total' and 'B--T' with 'Boron Total'.
#> Failed to replace 'KRYP'.
#> [1] "Aluminum Dissolved" "Arsenic Total"      "Boron Total"       
#> [4] NA