Learn R Programming

RSMET (version 1.3.8)

print.smet: "Print" and "Show" method for "smet-class" object

Description

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

Usage

# S3 method for 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 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

Run this code
# NOT RUN {
file <- system.file("examples/test.smet",package="RSMET")
sm <- smet(file)
print(sm)

# }

Run the code above in your browser using DataLab