search for: rfunc

Displaying 10 results from an estimated 10 matches for "rfunc".

Did you mean: func
2011 Jun 20
3
[LLVMdev] C struct as function argument
...thElementTypes:[NSArray arrayWithObjects:[CGKType intTypeWith32Bits],[CGKType intTypeWith32Bits],nil]]; CGKFunction* lfunc = [CGKFunction functionWithName:@"testLLVMStructFuncCall" types:[NSArray arrayWithObjects:[CGKType idType],testStructType,nil] intoModule:myMod]; CGKFunction* rfunc = [CGKBuilder createStandaloneCallForFunction:lfunc withArguments:[NSArray arrayWithObjects: [CGKConstant getStructOfT...
2014 Mar 06
2
A question about multiple(?) out of order ReleaseObject
Hello, This is a question that probably reveals my lack of understanding. In a C function (call it cfunc), i created a SEXP, called S, and then called R_PreserveObject on S. I returned the SEXP to the calling R function (call it rfunc). Note, I didn't call R_ReleaseObject on S. v <- .Call("cfunc") So, are the following statements correct 1. S is 'doubly' protected from the GC by being associated both with 'v' and because it has been added to the precious list (via a call to R_PreserveObject...
2011 Aug 30
2
Error in evalauating a function
Hi, ? I am very new to R. So, pardon my dumb question. I was trying to write my own function to run a different model (perform an ordered logistic regression) using the example in website http://pngu.mgh.harvard.edu/~purcell/plink/rfunc.shtml But R returns a error `R Error in eval(expr, envir, enclos) : object 's' not found' when I run it. What am I doing wrong here? Here's what I got from the debug file. # Input data n <- 10 PHENO <- c( 1, 3, 2, 3, 1, 1, 1, 2, 1, 2 ) c <- c( 1, 1, 0, 0, 0, 0, 0, 1, 0,...
2008 Jul 26
1
S-PLUS code in R
...mail some hour ago about a matlab Code I was trying to translate in R. Actually I have found a simpler code originally written in S-PLUS for the same function. Author's page -> http://math.bu.edu/people/murad/methods/locwhitt/ ============================================================= rfunc_function(h, len, im, peri) # h -- Starting H value for minimization. # len -- Length of time series. # im -- Use only len/im frequencies. # peri -- Periodogram of data. { m <- len %/% im peri <- peri[2:(m + 1)] z <- c(1:m) freq <-...
2003 Nov 28
0
For those of you that uses syn Text Editor to edit .R files
...L. - Support for Sweave files, a combination of LaTeX and S code (BUT syn isn't a good editor for editing LaTeX file, due to the lack of automatic linebreak, and a very rudimentary LaTeX Highlighter) - Highlights about 3300 R Functions of the base Package. To add or remove functions edit config\rfuncs.txt - A program to start syn and load a document and wait until this document has been closed. So you can use syn as Editor for edit(something). To do so send the line options(editor='$[Exe-Dir-FwdSlash]/syncli.exe') at start of R. - Breakpoint Marker Type, to use with Send from Cursor to...
2008 Jul 25
0
s-plus in R... simpler code
...mail some hour ago about a matlab Code I was trying to translate in R. Actually I have found a simpler code originally written in S-PLUS for the same function. Author's page -> http://math.bu.edu/people/murad/methods/locwhitt/ ============================================================= rfunc_function(h, len, im, peri) # h -- Starting H value for minimization. # len -- Length of time series. # im -- Use only len/im frequencies. # peri -- Periodogram of data. { m <- len %/% im peri <- peri[2:(m + 1)] z <- c(1:m) freq <-...
2014 Mar 07
0
Repost: (apologies for HTML post) A question about multiple(?) out of order ReleaseObject
...s, I am resending this because my emails seem to go in HTML form. Hello, This is a question that probably reveals my lack of understanding. In a C function (call it cfunc), i created a SEXP, called S, and then called R_PreserveObject on S. I returned the SEXP to the calling R function (call it rfunc). Note, I didn't call R_ReleaseObject on S. v <- .Call("cfunc") So, are the following statements correct 1. S is 'doubly' protected from the GC by being associated both with 'v' and because it has been added to the precious list (via a call to R_PreserveObject...
2014 Mar 07
0
Many apologies: last post: A question about multiple(?) out of order ReleaseObject
...o in HTML form. (I haven't as yet figured gmail web interface) Hello, This is a question that probably reveals my lack of understanding. In a C function (call it cfunc), i created a SEXP, called S, and then called R_PreserveObject on S. I returned the SEXP to the calling R function (call it rfunc). Note, I didn't call R_ReleaseObject on S. v <- .Call("cfunc") So, are the following statements correct 1. S is 'doubly' protected from the GC by being associated both with 'v' and because it has been added to the precious list (via a call to R_PreserveObject...
2011 Mar 31
1
R packages "Demography installing Error In Ubuntu 10.04"
...-fpic -O3 -pipe -g -c IDim.cpp -o IDim.o g++ -I/usr/share/R/include -fpic -O3 -pipe -g -c L1Median.HoCr.cpp -o L1Median.HoCr.o g++ -I/usr/share/R/include -fpic -O3 -pipe -g -c L1Median.VardiZhang.cpp -o L1Median.VardiZhang.o g++ -I/usr/share/R/include -fpic -O3 -pipe -g -c RFunc.cpp -o RFunc.o g++ -I/usr/share/R/include -fpic -O3 -pipe -g -c conv.cpp -o conv.o g++ -I/usr/share/R/include -fpic -O3 -pipe -g -c hess.cpp -o hess.o g++ -I/usr/share/R/include -fpic -O3 -pipe -g -c l1median.cpp -o l1median.o g++ -I/usr/share/R/include -fpic -O3 -pipe -...
2008 Apr 01
10
Request for code review: the brendan() action
This came up as an RFE during the conference (I believe it''s been logged as "4012008: brendan() action needed for DTrace Toolkit".) As everyone here is aware, DTrace is not quite as user friendly as it could be. For the uninitiated, it can be confusing to run a DTrace script and not see the expected output. Brendan Gregg has addressed this in the DTrace Toolkit[1] by