db.print {RGeostats} | R Documentation |
Print a summary of a db-class
contents.
db.print(x, ...,flag.resume=TRUE,flag.extend=FALSE,flag.stats=FALSE, flag.print=FALSE, flag.class=FALSE, flag.vars=0, names=NA)
x |
The |
... |
Present by compatibility with the generic print function. |
flag.resume |
When TRUE, the characteristics of the Data Base are printed |
flag.extend |
When TRUE, the extension of the Data Base is printed |
flag.stats |
When TRUE, the statistics of the matrix of values are printed. Only the fields which are designated by a locator are concerned. If a weighting variable is defined (locator "w"), weighted statistics are computed. |
flag.print |
When TRUE, the whole contents of the table is dumped out |
flag.class |
When TRUE (and if flag.stats=TRUE and a variable is specified), the statistics of the selected variables are produced by (non empty) integer classes. |
flag.vars |
This argument defines the way the list of variables in the Db is printed:
(*) Variables are considered as "macro(s)" if they have the same name (up to the last numeric part) and the same locator (up the last numeric part). |
names |
List of names of attributes to be printed. For more information see
|
The printout of the contents of the db-class
.
data(Z_data.db) # Load the Documentation Points Db Z_data.db # Print a short contents of the Db db.print(Z_data.db) # Print a short description of the Db # Note that we obtain the same result by simply type the name of the Db # Add the extension of the Db db.print(Z_data.db,flag.extend=TRUE) # Add the statistics one or all the variables db.print(Z_data.db,flag.stats=TRUE,name="z1") # Stats on 'z1' # Add the statistics by integer classes db.print(Z_data.db,flag.class=TRUE,name="z2") # Print the contents of the Db db.print(Z_data.db,flag.print=TRUE) # Note that only the first 'Ntrow" rows 'Mtcol" columns are printed # Use environ.print() to check these values and # use constant.define() to modify them # Clean the data set # rm(Z_data.db)