vp
) or time series of vertical profiles (vpts
)R/get_quantity.R
get_quantity.Rd
Get a quantity of a vertical profile (vp
) or time series of vertical profiles (vpts
)
get_quantity(x, quantity) # S3 method for vp get_quantity(x, quantity = "dens") # S3 method for list get_quantity(x, quantity = "dens") # S3 method for vpts get_quantity(x, quantity = "dens")
x | A vp or vpts object. |
---|---|
quantity | A profile quantity, one of:
|
class vp
: a named vector for the requested quantity.
class list
: a list of a named vectors for the requested
quantity.
class vpts
: a (height x time) matrix of the
requested quantity.
This function grabs any of the data quantities stored in vp or vpts objects. See the documentation of the vertical profile vp class for a description of each of these quantities.
# load example profile data(example_vp) # extract the animal density ("dens") quantity: get_quantity(example_vp, "dens")#> 0 200 400 600 800 1000 #> NA 85.0995178 110.4298782 91.7822418 34.5677528 20.5497875 #> 1200 1400 1600 1800 2000 2200 #> 22.9609985 19.7929668 19.7772617 17.3985100 11.9922190 7.2263165 #> 2400 2600 2800 3000 3200 3400 #> 3.0735207 0.0000000 0.7724188 0.0000000 0.0000000 0.0000000 #> 3600 3800 4000 4200 4400 4600 #> 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 #> 4800 #> 0.0000000