Package TSfame. February 15, 2013



Similar documents
Time Series Database Interface: R MySQL (TSMySQL)

Package retrosheet. April 13, 2015

Package uptimerobot. October 22, 2015

Package fimport. February 19, 2015

Package sjdbc. R topics documented: February 20, 2015

Package pdfetch. R topics documented: July 19, 2015

Package sendmailr. February 20, 2015

Package hive. January 10, 2011

Package RCassandra. R topics documented: February 19, Version Title R/Cassandra interface

Package httprequest. R topics documented: February 20, 2015

Package missforest. February 20, 2015

Package empiricalfdr.deseq2

Package hive. July 3, 2015

Package PKI. July 28, 2015

Package translater. R topics documented: February 20, Type Package

Package HadoopStreaming

Package RSQLite. February 19, 2015

Package jrvfinance. R topics documented: October 6, 2015

Package tagcloud. R topics documented: July 3, 2015

Package MBA. February 19, Index 7. Canopy LIDAR data

Package cgdsr. August 27, 2015

Package dsstatsclient

Package png. February 20, 2015

Package RedditExtractoR

Package packrat. R topics documented: March 28, Type Package

Package PKI. February 20, 2013

TS2Mascot. Introduction. System Requirements. Installation. Interactive Use

Package RIGHT. March 30, 2015

Package pinnacle.api

Data Domain Profiling and Data Masking for Hadoop

Lecture 25: Database Notes

Package EasyHTMLReport

Package searchconsoler

Package dunn.test. January 6, 2016

Package GSA. R topics documented: February 19, 2015

Package erp.easy. September 26, 2015

Package urltools. October 11, 2015

Package syuzhet. February 22, 2015

Tenrox and Microsoft Dynamics CRM Integration Guide

NEC Express5800 Series NEC ESMPRO AlertManager User's Guide

Package GEOquery. August 18, 2015

Using IRDB in a Dot Net Project

Package HHG. July 14, 2015

Package date. R topics documented: February 19, Version Title Functions for handling dates. Description Functions for handling dates.

Package OECD. R topics documented: January 17, Type Package Title Search and Extract Data from the OECD Version 0.2.

An Introduction to SAS/SHARE, By Example

Package plan. R topics documented: February 20, 2015

Package ChannelAttribution

Package hoarder. June 30, 2015

Package TimeWarp. R topics documented: April 1, 2015

LANDESK Service Desk. Desktop Manager

Package bigdata. R topics documented: February 19, 2015

WebSphere Business Monitor V7.0: Clustering Single cluster deployment environment pattern

Integrating VoltDB with Hadoop

PaperCut Payment Gateway Module - RBS WorldPay Quick Start Guide

Package hazus. February 20, 2015

Package RPostgreSQL. February 19, 2015

Package survpresmooth

Using Microsoft Windows Authentication for Microsoft SQL Server Connections in Data Archive

Package bizdays. March 13, 2015

Fairsail REST API: Guide for Developers

Package benford.analysis

Chapter 6 Using Network Monitoring Tools

Package dsmodellingclient

Package WikipediR. January 13, 2016

Installing, Uninstalling, and Upgrading Service Monitor

InfoRouter LDAP Authentication Web Service documentation for inforouter Versions 7.5.x & 8.x

IceWarp to IceWarp Server Migration

Package changepoint. R topics documented: November 9, Type Package Title Methods for Changepoint Detection Version 2.

Package wordnet. January 6, 2016

Package CRM. R topics documented: February 19, 2015

Web Services for Management Perl Library VMware ESX Server 3.5, VMware ESX Server 3i version 3.5, and VMware VirtualCenter 2.5

Package bigrf. February 19, 2015

Package DSsim. September 25, 2015

Implementing a SAS 9.3 Enterprise BI Server Deployment TS-811. in Microsoft Windows Operating Environments

Configuring an Oracle Business Intelligence Enterprise Edition Resource in Metadata Manager

Package pxr. February 20, 2015

Package neuralnet. February 20, 2015

Online signature API. Terms used in this document. The API in brief. Version 0.20,

SOA Software API Gateway Appliance 7.1.x Administration Guide

Chapter 6 Using Network Monitoring Tools

How To Check If Your Router Is Working Properly

How To Install Powerpoint 6 On A Windows Server With A Powerpoint 2.5 (Powerpoint) And Powerpoint On A Microsoft Powerpoint 4.5 Powerpoint (Powerpoints) And A Powerpoints 2

Contents About the Contract Management Post Installation Administrator's Guide... 5 Viewing and Modifying Contract Management Settings...

How to Migrate to MailEnable using the Migration Console

CRM Migration Manager for Microsoft Dynamics CRM. User Guide

Package acrm. R topics documented: February 19, 2015

Field Properties Quick Reference

Installation & Configuration Guide User Provisioning Service 2.0

LifeSize Networker Installation Guide

Chapter 3 Management. Remote Management

API documentation - 1 -

Installing and Using the vnios Trial

Listeners. Formats. Free Form. Formatted

Monitoring Agent for PostgreSQL Fix Pack 10. Reference IBM

Transcription:

Package TSfame February 15, 2013 Version 2012.8-1 Title TSdbi extensions for fame Description TSfame provides a fame interface for TSdbi. Comprehensive examples of all the TS* packages is provided in the vignette Guide.pdf with the TSdata package. Depends R (>= 2.8.0), methods, tframe, tframeplus(>= 2011.8-1), TSdbi (>= 2011.11-1), DBI, fame (>= 2.12), tis, zoo Imports methods, DBI, TSdbi (>= 2011.11-1), tframe Suggests tseries, tfplot Enhances TSdbi BuildVignettes true License GPL-2 Copyright 2007-2011 Bank of Canada. 2012 Paul Gilbert. Author Paul Gilbert <pgilbert.ttv9z@ncf.ca> Maintainer Paul Gilbert <pgilbert.ttv9z@ncf.ca> URL http://tsdbi.r-forge.r-project.org/ Repository CRAN Repository/R-Forge/Project tsdbi Repository/R-Forge/Revision 378 Repository/R-Forge/DateTimeStamp 2012-09-29 23:37:28 Date/Publication 2012-10-01 19:37:27 NeedsCompilation no 1

2 TSdbiMethods R topics documented: TSdbiMethods........................................ 2 vintagemap......................................... 6 Index 7 TSdbiMethods TSdbi fame Methods Description Usage Methods for TSdbi fame time series dtabase connection. ## S4 method for signature famedriver,character TSconnect(drv, dbname, accessmode = if (file.exists(dbname)) "shared" else "create", current = NA,...) ## S4 method for signature fameserverdriver,character TSconnect(drv, dbname, service = "", host = "", user = "", password = "", current = NA,...) TSget(serIDs, con, TSrepresentation = getoption("tsrepresentation"), tf = NULL, start = tfstart(tf), end = tfend(tf), names = NULL, TSdescription = FALSE, TSdoc = FALSE, TSlabel=FALSE, TSsource=TRUE, vintage=getoption("tsvintage"),...) TSget(serIDs, con, TSrepresentation = getoption("tsrepresentation"), tf = NULL, start = tfstart(tf), end = tfend(tf), names = NULL, TSdescription = FALSE, TSdoc = FALSE, TSlabel=FALSE, TSsource=TRUE, vintage=getoption("tsvintage"),...) ## S4 method for signature ANY,character,TSfameConnection TSput(x, serids=seriesnames(x), con, TSdescription.=TSdescription(x), TSdoc.=TSdoc(x), TSlabel.=NULL, TSsource.=NULL, warn = TRUE,...) ## S4 method for signature ANY,character,TSfameServerConnection TSput(x, serids=seriesnames(x), con, TSdescription.=TSdescription(x), TSdoc.=TSdoc(x), TSlabel.=NULL, TSsource.=NULL, warn = TRUE,...) TSdates(serIDs, con,

TSdbiMethods 3 vintage=getoption("tsvintage"), panel=null,...) TSdates(serIDs, con, vintage=getoption("tsvintage"), panel=null,...) TSexists( serids, con, vintage=null, panel=null,...) TSexists( serids, con, vintage=null, panel=null,...) TSdelete(serIDs, con, vintage=getoption("tsvintage"), panel=getoption("tspanel"),...) TSdelete(serIDs, con, vintage=getoption("tsvintage"), panel=getoption("tspanel"),...) TSdescription(x, con,...) TSdescription(x, con,...) TSdoc(x, con,...) TSdoc(x, con,...) TSlabel(x, con,...) TSlabel(x, con,...) TSsource(x, con,...) TSsource(x, con,...) ## S4 method for signature TSfameConnection TSvintages(con) ## S4 method for signature TSfameServerConnection TSvintages(con) ## S4 method for signature TSfameConnection dbdisconnect(conn,...) ## S4 method for signature TSfameServerConnection dbdisconnect(conn,...)

4 TSdbiMethods ## S4 method for signature famedriver dbunloaddriver(drv,...) ## S4 method for signature fameserverdriver dbunloaddriver(drv,...) ## Default S3 method: fame() ## Default S3 method: fameserver() Arguments drv dbname con conn serids vintage panel A famedriver. A character string indicating a [server and] database name. A database connection. A database connection. identifiers for series to extract. character string indicating vintage of the series on the databases. character string indicating panel of the series on the database (not supported by this database). x data series to put on the database, or a series identifier for TSdescription and TSdoc or, for print, a database connection as returned by TSconnect. TSrepresentation time series representation to use for the result. names tf start end TSdescription Optional character vector to use for series names. Defaults to serids unless vintage is a vector, in which case it defaults to vintage. Optional tframe to use for truncating data. (See tfwindow.) Optional start date to use for truncating data. (See tfwindow.) Optional end date to use for truncating data. (See tfwindow.) TRUE or FALSE indicating whether description should be extracted TSdescription. Description to put on the database. TSdoc TSdoc. TSlabel TSlabel. TSsource TSsource. warn accessmode TRUE or FALSE indicating whether documentation should be extracted. Documentation to put on the database. Logical indicating if warning messages should be suppressed. Optional character indicating the mode to use when opening the Fame database when establishing the first connection. After the first connection, "read" will be used for reading and "update" for writing.

TSdbiMethods 5 host service user Details Value password current A character string indicating a server. A character string indicating a server port number. A character string indicating a user id (if needed). A character string indicating a password (if needed). A character string indicating a vintage that should be considered the current vintage (see details).... Arguments passed to other methods. These are fame methods for TSdbi. See the package TSdbi for details and see the vignette distributed with this package for more complete examples. This package provides a wrapper to the fame package to provide a TSdbi API for users. The TSfameConnection establishes a connection using the locally fame which can access local databases or databases on a remote server, specified by the server name followed by a space and the database name. The TSfameServerConnection establishes a connection to a remote server using one of Fame s remote server protocols. See package fame for more specific details. There is a simplistic mechanism for accessing vintages of data stored in different Fame databases. To use this, the dbname argument to TSconnect should be a vector of character strings indicating the databases, with names of the elements indicating the vintages. The vintage argument to TSget is then a character vector used to select a subset of dbname. The dbname argument to TSconnect can also be specified to indicate the version that should be considered current. (That is, the user needs to know that information and specify it, rather than having it supplied by the database.) In other respects the vintages support is then similar to other TSdbi packages such as TSMySQL, and examples in those packages may be useful. Some examples are also provided in the TSfame Guide vingette. depends. See Also TSdbi-package, dbconnect, TSput getfame Examples require("tfplot") con <- try(tsconnect(dbdriver("fame"), dbname="test.db")) if(! inherits(con, "try-error")) { z <- ts(rnorm(100), start=c(1975,1), frequency=12) seriesnames(z) <- "random1" if(tsexists("random1", con)) TSreplace(z, con) else TSput(z, con) z1 <- TSget("random1", con) tfplot(z1) z <- ts(matrix(rnorm(100),50,2), start=c(1975,1), frequency=4) seriesnames(z) <- c("random2","random3")

6 vintagemap if(tsexists("random2", con) TSexists("random3", con) ) TSreplace(z, con) else TSput(z, con) z2 <- TSget("random2", con) tfplot(z2) TSdates("D1", con) TSdates("random2", con) TSdates(c("random1","random2","random3"), con) TSmeta("random2", con) options(tsconnection=con) z2 <- TSget(c("random2","random3")) z <- TSdates(c("D1","random2","random3")) print(z) TSmeta("random2") TSdelete("random1", con) TSdelete("random2") dbdisconnect(con) } vintagemap Read vintage names and file paths to use for TSconnect Description Read vintage names and file paths to use for TSconnect. Usage vintagemap(file) Arguments file A character string indicating a file. Details Value The argument file should be a character string indicating a file that will be read. The file should have lines with two space separated columns, the first indicating a name to be used for a vintage, e.g., 2009-01-07, and the second indicating the path to the database file to use for that vintage, e.g., /path/to/ets_2009-01-07.db. The file is read and the result is a string that can be passed as the dbname to TSfame s TSconnect method. See Also a character vector with names TSconnect

Index Topic ts TSdbiMethods, 2 vintagemap, 6 dbconnect, 5 dbdisconnect,tsfameconnection-method dbdisconnect,tsfameserverconnection-method dbobjectid-class dbunloaddriver,famedriver-method dbunloaddriver,fameserverdriver-method fame famedriver-class fameobject-class fameserver getfame, 5 TSconnect, 6 TSconnect,fameDriver,character-method TSconnect,fameServerDriver,character-method TSdates,character,TSfameConnection-method TSdates,character,TSfameServerConnection-method TSdbiMethods, 2 TSdelete,character,TSfameConnection-method TSdelete,character,TSfameServerConnection-method TSdescription,character,TSfameConnection-method TSdescription,character,TSfameServerConnection-method 7 TSdoc,character,TSfameConnection-method TSdoc,character,TSfameServerConnection-method TSexists,character,TSfameConnection-method TSexists,character,TSfameServerConnection-method TSfameConnection-class TSfameServerConnection-class TSget,character,TSfameConnection-method TSget,character,TSfameServerConnection-method TSlabel,character,TSfameConnection-method TSlabel,character,TSfameServerConnection-method TSput, 5 TSput,ANY,character,TSfameConnection-method TSput,ANY,character,TSfameServerConnection-method TSsource,character,TSfameConnection-method TSsource,character,TSfameServerConnection-method TSvintages,TSfameConnection-method TSvintages,TSfameServerConnection-method vintagemap, 6