"Print" and "Show" method for "smet-class" object

Share:

Description

It prints or shows a smet-class directly on terminal or on an external file.

Usage

1
2
3
4
5
6
7
## S3 method for class 'smet'
print(x, date.field = "timestamp",
  date.format = "%Y-%m-%dT%H:%M:%S", file = NULL,
  print.all = !identical(file, NULL), max.records = 20, ...)

## S4 method for signature 'smet'
show(object)

Arguments

x, object

a smet-class object

date.field

field neme used for date and time. Default is "timestamp".

date.format

format used for date and time. Default is "%Y-%m-%dT%H:%M:%S".

file

filename where to print the smet-class object x as an ASCII file. It is equal to "internal", the filename is taken from slot(x,"file") (internally defined in x).

print.all

logical value. If it is FALSE exceeding lines are omitted for a better human readibility.

max.records

maximum printable number of records. Default is 20 and it is activated only if print.all==FALSE. ,

...

further argumnents for writeLines

See Also

smet-class, smet,writeLines,print.meteoioini

Examples

1
2
3
file <- system.file("examples/test.smet",package="RSMET")
sm <- smet(file)
print(sm)