Getter to access the weather data at a specific position.

# S4 method for class 'WeaAna'
x[i, j, drop]

Arguments

x

A WeaAna object.

i

the specific position which will access.

j

None use parameter.

drop

None use parameter.

Value

A WeaAnaSite object at the position i.

Examples

library(weaana)
data( "WeatherRecordsDemo" ) 
#> Warning: data set ‘WeatherRecordsDemo’ not found
records[1]
#>                  Name  Number Latitude Longitude
#> 1 DEMO Weather Site 1 0000001      -25       135
records[1:2]
#>                  Name  Number Latitude Longitude
#> 1 DEMO Weather Site 1 0000001      -25       135
#> 2 DEMO Weather Site 2 0000002      -25       130
records[2:2]
#>                  Name  Number Latitude Longitude
#> 1 DEMO Weather Site 2 0000002      -25       130