Menu
  • HOME
  • TAGS

Error in R using neuralnet package

r,neural-network,r-package

I don't see y column, that you're referring in your formula, in your data set. Your target variable should exist in your data set. Should it be SP500_R? Second, neuralnet won't work with NAs in data, filter your data set with na.omit() first. Also, let me give a side note:...

How to resolve warning messages (metadata object not found; SpatialLinesNULL class not exported) in my R package which extends S4 classes

r,inheritance,devtools,sp,r-package

This answer draws together all the information I've learnt related to the suite of questions I asked, for the benefit of anyone else who comes across a similar issue. It turns out to be easier to present the answers in reverse to the order in which the questions were asked....

R deepnet package: how to add more hidden layers to my neural network?

r,neural-network,deep-learning,r-package

Although I am unfamiliar with the deepnet package, it appears it is structured the same as other neural net packages. After looking at the documentation (?sae.dnn.train) you will see: hidden: vector for number of units of hidden layers.Default is c(10). Now this isn't the clearest description but I believe it...

R package ape: extract the first two nucleotide in the codon

r,bioinformatics,r-package

You can select the first and second by excluding the third: test3[-seq(3, length(test3), by = 3)] ...

How to use S3 methods from another package which uses export rather than S3method in its namespace without using Depends or library()

r,package,r-package,r-s3

The key here is to import the specific methods in addition to the generic you want to use. Here is how you can get it to work for the default method. Note: this assumes that the test.h5 file already exists. #' @importFrom rhdf5 h5write.default #' @importFrom rhdf5 h5write #' @export...

Possible to use newline inside roxygen2 code block?

r,documentation,r-package

Use \preformatted instead of \code. \code is for inline code (works like `` on SO) and \preformatted is for verbatim blocks (like indentation on SO). #' \preformatted{ #' multiple #' lines #' } Note that the initial line break, just after {, will also be part of the code block,...

Indicate that R package is proprietary

r,r-package

You can use the License: field of the DESCRIPTION file and the LICENSE file for the actual license. For more info see: http://cran.r-project.org/doc/manuals/r-release/R-exts.html#Licensing

Include ggplot2 function in package

r,plot,ggplot2,namespaces,r-package

the solution in the comments was to be more specific about the export like below #' Label wrapper for ggplot #' #' Include in the facet_grid option of ggplot. #' @param variable #' @param value #' @return wrapper #' @export plot.label.wrap plot.label.wrap <- function(variable, value) { lapply(strwrap(as.character(value), width=15, simplify=FALSE), paste,...

Proper use of optional package features and dependencies

r,dependencies,r-package

This is a problem with KEGGgraph -- it uses but does not import graph::nodeDataDefaults<-. The solution is to get in touch with maintainer("KEGGgraph") and ask them to update their NAMESPACE KEGGgraph$ svn diff Index: NAMESPACE =================================================================== --- NAMESPACE (revision 104133) +++ NAMESPACE (working copy) @@ -2,7 +2,7 @@ importFrom(XML, "xmlAttrs",...

Package Dependencies

r,r-package

(Note that a script is not a package.) When you run your script analyzer.R it explicitly loads base64enc so the package is in your load path. But your package may just have Imports: base64enc with a corresponding NAMESPACE statement -- that makes the code from base64enc available in you package...

How do I get rid of the NOTE's generated by R CMD check when using for example ddply in my package?

r,warnings,plyr,r-package,package-development

There are several workarounds. The easiest is to just assign NULL to all variables with no visible binding. VarA <- VarB <- VarC <- VarD <- VarE <- NULL A more elegant solution is to use as.quoted and substitute. UPDATE by @Dr. Mike: the call to as.quoted need to be...