Description Usage Arguments See Also Examples
Convert a slice read from a NetCDF file with ncvar_slice into a data.frame for further manipulation of the data.
| 1 2 | ## S3 method for class 'ncslice4'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
 | 
| x | a NetCDF slice object, extracted via  | 
| row.names | 
 | 
| optional | logical. If  | 
| ... | ignored. | 
ncvar_slice to read the slice and as.xyz.ncslice4 to convert it into another format.
| 1 2 3 4 | nc <- nc_open(system.file("extdata", "sresa1b_ncar_ccsm3.nc", package="ncdf4helpers"))
x <- ncvar_slice(nc, "tas")
nc_close(nc)
head(as.data.frame(x))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.