Displaying 20 results from an estimated 4000 matches similar to: "embedding R in c++ (Qt) application"
2008 Jun 24
1
Using Huge Pages for R
Hi all,
My application usually works on huge amounts of data in the size of MB's .So
the performance of "R" in this case will increase if Huge pages are used
instead of malloc'ing (as in memory.c) .
So Are there any methods to support Huge Pages in "R" ?
Can any one give some inputs to help me implementing this feature?
[[alternative HTML version deleted]]
2008 Jun 24
1
Using Huge Pages for R
Hi all,
My application usually works on huge amounts of data in the size of MB's .So
the performance of "R" in this case will increase if Huge pages are used
instead of malloc'ing (as in memory.c) .
So Are there any methods to support Huge Pages in "R" ?
Can any one give some inputs to help me implementing this feature?
[[alternative HTML version deleted]]
2008 Dec 11
3
Downloading Reuters data from R
Hi R,
Can we download Reuters (3000 Xtra) data from R? Does ODBC package help
me in this? Or otherwise, is there a way to extract daily closing prices
data of Reuters from R?
Thank you very much,
Shubha
This e-mail may contain confidential and/or privileged i...{{dropped:13}}
2008 Oct 23
1
[R-SIG-Finance] forecasting earnings, sales and gross margin of a company...
Sender: r-help-bounces at r-project.org
On-Behalf-Of: comtech.usa at gmail.com
Subject: Re: [R] [R-SIG-Finance] forecasting earnings, sales and gross margin of a company...
Message-Id: <b1f16d9d0810231239k506d582i7ecb908b84bc1642 at mail.gmail.com>
Recipient: ngottlieb at marinercapital.com
--------------------------------------------------------
This information is being sent at the
2008 Apr 24
1
Calling R functions with multiple arguments from C
Hi,
I'm writing a C function that has to call a R function with multiple
arguments. I've read the relevant section in Writing R Extensions, and
searched the R site, mailing lists as well as rseek. I managed to call
the function, but I'm now having trouble creating the argument list.
I tried to create a pairlist of the arguments and send it to the R
function. The R function however
2008 Nov 25
3
Line color based on data values?
Hi all
Does anyone know if it is possible when plotting a line or scatter plot, to selectively color the data points based on the data value? i.e. if plotting say the percentage change in stock price movements, to color +ve points in green and -ve points in red? And extending this to a user-defined range of colors based on the quartile of the data points?
Thanks
Rory
Rory Winston
RBS Global
2005 Sep 18
3
Attaching effects during onload
I''m trying to attach effects to elements in my onload handler and my
lack of Javascript-fu is showing... I want to call the effect from
the onclick handler of an anchor inside the div I want the effect to
apply to. Here''s what I''m trying to do:
function doOnLoad() {
var filters = document.getElementsByName(''filter'');
for
2008 Dec 05
1
Cartesian Product Of Character Vectors
Hi all
(I'm sure this question has been asked before, but I cant find it).
If I have two character vectors:
> x <- c("aaa","bbb","ccc")
> y <- c("1","2","3")
How can I get the cartesian product of the string values?
> expand.grid(x,y)
Gives me a data frame with separate columns...however, I cant seem to get *apply
2005 Sep 15
1
server push?
Has anyone done much work with server-side push and AJAX/J? (XML or JSON)
As best I can tell, the ideal solution to this would be
the multipart/x-mixed-replace MIME type. Mozilla''s XMLHttpRequest now has
support for this, so this is on people''s minds, but how to make it work on
the server end?
You have to keep a connection open.....and a process on the server to go
with it.
2005 Oct 13
3
Tweaks of Array.prototype
Hi all,
I encountered a big problem when trying to use Scriptaculous and
Htmlarea in the same page.
The Htmlarea code uses a lot of "for (var i in array_variable)" to
iterate on array elements. Problem is that prototype.js augments
Array.prototype, which then show up in the iteration, severely breaking
htmlarea.
The easy workaround is for sure to use "for (var i = 0; i <
2005 Aug 30
4
Java with Scriptaculous
I know that the prototype library was paired with Rails but I''m curious
if anyone has used the ajax part (of the libraries) with java servlets?
If so could you please point me to some examples or documentation.
Cheers,
Marty
2005 Oct 21
2
scriptaculous website - IE crashes
often when I "try to" visit the scriptaculous, it crashes IE - does anybody
else experience this as well?
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
2005 Sep 30
5
Converting text into a javascript array
Hey Guys,
I know this isn''t specific to scriptaculous libraries but it''s something
that I''m exploring as I use the ajax functions in prototype. My
application server is not rails but java and I was thinking of returning
a javascript array in the ajax response. When I get back my response is
it, of course, text and I''m not sure how best to convert it into
2008 Nov 24
4
Calculating sum of letter values
Hi all
If I have a string, say "ABCDA", and I want to convert this to the sum of the letter values, e.g.
A -> 1
B -> 2
etc, so "ABCDA" = 1+2+3+4+1 = 11
Is there an elegant way to do this? Trying something like
which(LETTERS %in% unlist(strsplit("ABCDA", "")))
is not quite correct, as it does not count repeated characters. I guess what I need is
2008 Dec 05
1
Lexical Permutation Algorithm in R
Hi all
Here is a rather naive implementation of the SEPA algorithm for generating lexical permutations:
lexperm3 <- function(x, n=length(x)) {
perms <- list()
k <- 1
perms[[k]] <- x
k <- k + 1
for (y in 1:(factorial(n)-1)) {
i <- n-1
while (x[i] > x[i+1] && i > 0) {
i <- i - 1
}
# i is largest index st x[i] > x[i+1]
j <- n
#
2008 Apr 29
2
Calling R from C - part way there but need a push!
Dear All,
I've read the manual on "Writing R Extensions" and in particular the
part on calling R from C. (Most of the manual is about calling C
from R, not the other way around.)
The good news is that I can now call _some_ R from C, specifically
the R functions which have C header files. However it isn't clear to
me how to call R functions that are written in R. I
2008 Sep 17
1
Extracting subsets by factor level?
Hi
I have a data frame which looks like the following (it is a table of commit logs to a source repo). The Author column
is treated as a factor, by virtue of stringsAsFactors being set to TRUE, so I can extract the number of commits
per author by using table(logs$Author).
Is there an elegant way to extract all subsets of this frame by the Author column - i.e. that returns say a list of
data
2005 Nov 25
4
BlindDown recommendations?
Hi folks,
I''m putting together a site that will have a shopping cart tab along the
top which, when clicked, slides down to reveal the full contents of
the cart (covering the page underneath it).
When designing it and getting the styling right, I had the page display
the cart fully open by default. This worked fine - the cart can close
and open any number of times without problem[1].
2003 Nov 03
2
lang2(...) with two and more arguments
Dear R-help,
how could I create an R call in C code using lang2 with 2 and more
arguments? I tried this code:
SEXP f(SEXP fn, SEXP rho)
{
SEXP R_fcall, x, y;
PROTECT(R_fcall = lang2(fn, R_NilValue));
PROTECT(x = allocVector(REALSXP, 1));
PROTECT(y = allocVector(REALSXP, 1));
REAL(x)[0] = 10;
REAL(y)[0] = 20;
SETCADR(R_fcall, x);
SETCADR(R_fcall, y);
2005 Sep 22
5
Prototype lib : for-each loops and DontEnum
All
I realise that this isn''t strictly the correct place to discuss the
prototype lib but being as scriptaculous is dependent on it I thought people
might have some opinions.
Easier to explain with the example below, copy into a html file and ensure
the path to prototype.js is correct. You''ll see the first example prints an
extra element "extend" when iterating over