Displaying 15 results from an estimated 15 matches for "azege".
Did you mean:
zege
2013 Jan 21
2
foreach takes foreever?
I started to look at ways to improve times of certain very parallel tasks and thought that foreach should be a valid candidate to do the job.
So, i opened foreach tutorial by Steve Weston and started timing examples from it. First example from tutorial is
>system.time(for(i in 1:100000) sqrt(i))
user system elapsed
0.06 0.00 0.06
> system.time(foreach(i=1:100000) %do%
2010 Mar 18
1
package debug not available in Ubuntu
Hi, i have 8.10 Ubuntu, R version 2.7.1 on 64 bit pc. I install packages
fine, but when i try to do install.packages("debug") i get error message
package 'debug' is not available
Does this package exist for Ubuntu?
--
View this message in context: http://n4.nabble.com/package-debug-not-available-in-Ubuntu-tp1597844p1597844.html
Sent from the R help mailing list archive at
2013 Feb 17
1
tidy.source() gets confused when # is not a comment but a part of a literal string?
I needed to clean someone else code and run it through tidy.source. It encountered a number of hangups which after some experimentation lead me to suspect that the culprit is # symbol when it is a part of literal string. For example if i copy the following to the clipboard
confuse.tidy <-
function()
{
txt <- 'abra # cadabra'
}
and run with default arguments
>tidy.source()
2012 Nov 16
2
lubridate concatenation issue
I took a look at Hadley's lubridate which seems a very neat package, but i am having a small problem with concatenating lubridates to build vectors of it. Namely when function c( ) is applied to lubridate seems to change time to a local timezone in this particular case changing the date to previous one.
> d<-ymd('20111231')
> d
[1] "2011-12-31 UTC"
> c(d)
[1]
2010 Apr 16
2
efficient rolling rank
Could someone give me an idea on how to do rolling ranking, i.e. rank in the
moving window of last 100 numbers in a long vector? I tried naive solution
like
roll.rank<-function(v, len){
r<-numeric(length(v)-len+1)
for(i in len:length(v))
r[i-len+1]<-rank(v[(i-len+1):i])[len]
r
}
However, it turns out pretty slow even on my rather able Linux box. For
2010 Apr 23
2
bigmemory package woes
I have pretty big data sizes, like matrices of .5 to 1.5GB so once i need to
juggle several of them i am in need of disk cache. I am trying to use
bigmemory package but getting problems that are hard to understand. I am
getting seg faults and machine just hanging. I work by the way on Red Hat
Linux, 64 bit R version 10.
Simplest problem is just saving matrices. When i do something like
2013 Feb 05
1
failure to connect to Bloomber using Rbbg from batch script on Windows
I am having a puzzling problem with bloomberg connection. When i run from R prompt some code that has
....
library(Rbbg)
conn <- blpConnect(throw.ticker.errors = FALSE)
print("connected")
...
I establish connection every time and then proceed to get data when i run this code from R prompt. However, when i run this from a batch script, i get the following error output from Rbbg:
2010 May 05
0
R-help Digest, Vol 87, Issue 5
...ded to waive any right or privilege. If you have received this message in error, please delete it from your computer and contact the sender immediately.
[[alternative HTML version deleted]]
------------------------------
Message: 116
Date: Tue, 4 May 2010 12:00:44 -0700 (PDT)
From: zerdna <azege at yahoo.com>
To: r-help at r-project.org
Subject: [R] masking of objects between mtrace() and getYahooData()
Message-ID: <1272999644936-2126151.post at n4.nabble.com>
Content-Type: text/plain; charset=us-ascii
I am using getYahooData from TTR to get daily data. When i do it standalone,...
2010 May 04
0
masking of objects between mtrace() and getYahooData()
I am using getYahooData from TTR to get daily data. When i do it standalone,
it is fine. It also works fine inside my code. However, when i run code
inside mtrace(), i always get the following error:
Error in xts(cbind(adj[[1]], adj[[2]]), index(obj)):
order.by requires an appropriate time-based object
After a lot of hand wringing, it looks to me that it happens because index
in xts masks
2010 Aug 06
1
R script doesn't load libraries when called from cron
I have R script that i need to run in cron. Either R libraries or some .so
libraries that they depend on don't get loaded correctly. Here is an
example. I have a file, call it tmp.R
tmp.R
=========================
R --slave --args $0 $* <<EOF
cmarg = commandArgs()[5]
library(R.utils)
b<-intToBin(cmarg)
print(paste( "argument is ", cmarg, sep=""))
2010 Nov 24
1
RJDBC doesn't load Oracle driver?
After installing RJDBC on RedHat Linux and using it successfully with mySQL
JDBC driver i am trying to use it with Oracle database. I use the JDBC
driver that works fine elsewhere (use it in DBVizualizer). However, when i
try to load the driver,
drv<-JDBC("oracle.jdbc.driver.OracleDriver",
"/home/az05625/DBdrivers/ojdbc6.jar", identifier.quote="`")
it gives me
2011 Jan 22
0
libRblas.so: undefined reference to `xerbla_' ?
Hi all, i am trying to compile a test, calling from C code R Lapack shared
libraries. In particular, i am calling simple LAPACK driver
dposv for solving linear equation system A*x=B with positive definite A. My
code looks like the following in
solve.c
==========================
#include<stdio.h>
#include <R_ext/BLAS.h>
#include <R_ext/Lapack.h>
int main(){
2010 Oct 29
2
how to debug (mtrace) a function defined inside a function?
Hi, everyone. I am using a fair amount of closures in my code. Problem i am
experiencing is i cannot figure out how to mtrace functions defined within a
function. There must be some way to name such function for mtrace to see it
and let me step into it. For example, say i have code
mymodel<-function(){
data<-numeric(0)
build<-function(){
data<<-1
}
m<-list()
2013 Mar 20
1
htmlParse (from XML library) working sporadically in the same code
I am using htmlParse from XML library on a paricular website. Sometimes code fails, sometimes it works, most of the time id doesn't and i cannot see why. The file i am trying to parse is
http://www.londonstockexchange.com/exchange/prices-and-markets/international-markets/indices/home/sp-500.html?page=0
Sometimes the following code works
n<-readHTMLTable(htmlParse(url))
But most of the
2011 Feb 17
2
Newbie Rccp module question. "Failed to initialize module pointer"???
Hi all. I started looking at Rcpp, which looks pretty great, actually. At the
moment just trying to compile a module to get a feel how it all works without
fully understanding how all the pieces fit together.
Basically, i took the first example from Rcpp modules vignette:
fun.cpp
========================
#include <Rcpp.h>
#include <math.h>
using namespace Rcpp;
double