Obtain one of the elements within a sites, collectionunits, datasets, etc... Neotoma objects.

# S4 method for class 'chronologies,numeric'
x[[i]]

# S4 method for class 'collunits,numeric'
x[[i]]

# S4 method for class 'contacts,numeric'
x[[i]]

# S4 method for class 'datasets,numeric'
x[[i]]

# S4 method for class 'publications,numeric'
x[[i]]

# S4 method for class 'samples,numeric'
x[[i]]

# S4 method for class 'sites,numeric'
x[[i]]

# S4 method for class 'speleothems,numeric'
x[[i]]

# S4 method for class 'taxa,numeric'
x[[i]]

Arguments

x

Neotoma2 nested object

i

iteration in nested list

Value

sliced site object

Examples

# \donttest{
tryCatch({
  some_site <- get_sites(sitename = "Site%", limit=3)
  some_site[[2]]
}, error = function(e) {
  message("Neotoma server not responding. Try again later.")
})
#>  siteid                   sitename  lat   long altitude
#>      71 Site 1 (Swain unpublished) 45.2 -91.28      381
# }