search for: nfirs

Displaying 3 results from an estimated 3 matches for "nfirs".

Did you mean: firs
2010 Jan 06
2
debugging package
...ed by the package.skeleton function. I find the section on documentation to be pretty confusion in the R Extensions manual. Any help on getting these errors fixed would be hugely appreciated. Thanks. --Markus * checking for working pdflatex ... OK * using log directory '/Users/markus/Dropbox/NFIRS_S4/NFIRS.Rcheck' * using R version 2.9.2 Patched (2009-09-24 r50179) * using session charset: UTF-8 * checking for file 'NFIRS/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'NFIRS' version '1.0' * checking package dependencies ... OK * check...
2010 Jan 06
0
documenting methods for S4 objects
...n terms of documenting packages. 1) I seem to understand how to document a straightforward function, but am having trouble figuring out how to document methods functions when creating new S4 objects. For instance, I am trying to document the following function: setMethod("tail", "NFIRS", function(x, n=5) tail(as.data.frame(x), n=n)) So far, I have the following for my .Rd file (built automatically by package.skeleton) \name{tail-methods} \docType{methods} \alias{tail-methods} \alias{tail,ANY-method} \alias{tail,NFIRS-method} \title{ ~~ Methods for Function tail ~~} \descr...
2010 Jul 19
0
to extend data.frame or not ... that is the question
...onversion between data.frame and S4 CAD object -- used to initialize new objects as.CAD = function(from, ...) attributes(from, ...) setGeneric("as.CAD") setMethod("as.CAD", "data.frame", function(from,row.names=NULL, optional=FALSE, ...){ #new("NFIRS", data=x) new("CAD", incidents=unique(from[,c("incident_num", "incident_type")]), responses=unique(from[,c("incident_num", "unit", "response_time")])) }) ### define methods...