Pretty output method for SoilProfileCollection objects. By default this method limits output to 10 columns and 6 rows from the site and horizon tables respectively.

There is an aqp environment option you can set to increase the number of columns shown by default: options(.aqp.show.n.cols = 100),

as.character(): Character Representation of SoilProfileCollection Object

# S4 method for SoilProfileCollection
show(object)

# S4 method for SoilProfileCollection
as.character(x, ...)

Arguments

object

a SoilProfileCollection

x

a SoilProfileCollection

...

additional arguments (not used)

Examples


# load a SoilProfileCollection
data(sp5)

# use the show() method
show(sp5)
#> SoilProfileCollection with 296 profiles and 1539 horizons
#> profile ID: soil  |  horizon ID: hzID 
#> Depth range: 70 - 841 cm
#> 
#> ----- Horizons (6 / 1539 rows  |  10 / 18 columns) -----
#>    soil hzID top bottom sand silt clay  R25  G25  B25
#>   soil1    1   0      8 32.3 10.9 52.8 0.41 0.38 0.34
#>   soil1    2   8     25 29.0 11.2 58.2 0.31 0.28 0.25
#>   soil1    3  25     55 34.9 11.6 51.9 0.31 0.28 0.25
#>   soil1    4  55    100 38.2 10.9 49.7 0.31 0.28 0.25
#>   soil1    5 100    267 32.2 10.8 55.6 0.55 0.46 0.36
#>  soil10    6   0     10 25.2 14.4 58.4 0.43 0.37 0.30
#> [... more horizons ...]
#> 
#> ----- Sites (6 / 296 rows  |  1 / 1 columns) -----
#>     soil
#>    soil1
#>   soil10
#>  soil100
#>  soil101
#>  soil102
#>  soil103
#> [... more sites ...]
#> 
#> Spatial Data:
#> [EMPTY]

# which is same as this (in the console)
sp5
#> SoilProfileCollection with 296 profiles and 1539 horizons
#> profile ID: soil  |  horizon ID: hzID 
#> Depth range: 70 - 841 cm
#> 
#> ----- Horizons (6 / 1539 rows  |  10 / 18 columns) -----
#>    soil hzID top bottom sand silt clay  R25  G25  B25
#>   soil1    1   0      8 32.3 10.9 52.8 0.41 0.38 0.34
#>   soil1    2   8     25 29.0 11.2 58.2 0.31 0.28 0.25
#>   soil1    3  25     55 34.9 11.6 51.9 0.31 0.28 0.25
#>   soil1    4  55    100 38.2 10.9 49.7 0.31 0.28 0.25
#>   soil1    5 100    267 32.2 10.8 55.6 0.55 0.46 0.36
#>  soil10    6   0     10 25.2 14.4 58.4 0.43 0.37 0.30
#> [... more horizons ...]
#> 
#> ----- Sites (6 / 296 rows  |  1 / 1 columns) -----
#>     soil
#>    soil1
#>   soil10
#>  soil100
#>  soil101
#>  soil102
#>  soil103
#> [... more sites ...]
#> 
#> Spatial Data:
#> [EMPTY]