[R] Compilation error: Rcpp and related packages - record-gcc-switches missing

2014-11-12 Thread Antti Simola
Hello, I encountered problem with Linux machine (openSUSE, 3.1.1. version of R) while I tried to update the packages with update.packages(). Rcpp, RcppArmadillo and RcppEigen refused to compile because record-gcc-swtiches was missing. I don't know much about compiling and such so I didn't get any

[R] Making an aggregated factor variable from an existing one

2013-01-17 Thread Antti Simola
Hi, This is quite simple data manipulation task and I need help for it. I want to make new factor variable that is an aggregation of an existing factor. This works as I intended: X[Y == "original label"] <- " new label" How to make following work then (to make coding more convenient): orig

[R] Coefficient of determination for non-linear equations system (nlsystemfit)

2012-11-20 Thread Antti Simola
Hello everyone, I have estimated system of three linear equations with one non-linear restrictions with nlsystemfit. I was wondering how I can calculate the R-squared (or some alternative coefficient of determination) for the whole system. This is automatically given by linear systemfit but no