similar to: Where to put source code?

Displaying 20 results from an estimated 10000 matches similar to: "Where to put source code?"

2011 Aug 09
1
Matlab to R
I am trying to convert a matlab code to R. Most of the conversion statements are simple, but problem is with return. Since it's a recursive function it's a bit complicated. Anyway in matlab we can have return statment like [price, notional] = functionname() and also for the same function... notional(1) = functionname() how to do this in R? i have tried using data frame but still
2009 Sep 03
5
abind, but on lists?
I'm trying to massage some data from Matlab into R. The matlab file has a "struct array" which when imported into R using the R.matlab package, becomes an R list with 3+ dimensions, the first of which corresponds to the structure fields, with corresponding row names, and the second and third+ dimensions correspond to the dimensions of the original struct array (as matlab
2008 Dec 19
1
[LLVMdev] strange behaviour after extracting optimization pass code
Hi, I am expieriencing strange behaviour of llvm's optimization passes and I don't understand what I am doing wrong. Basically all I've done is extracting code for optimization of a llvm-function in a llvm-module and put it into a separate function for better readability. The original code looks like follows (and works as expected): ----------------------------- std::string
2008 Dec 19
2
[LLVMdev] strange behaviour after extracting optimization pass code
Hi, I am expieriencing strange behaviour of llvm's optimization passes and I don't understand what I am doing wrong. Basically all I've done is extracting code for optimization of a llvm-function in a llvm-module and put it into a separate function for better readability. The original code looks like follows (and works as expected): ----------------------------- std::string
2011 Jul 27
3
How to search for R related topics in search engines?
Dear R folks, I am having problems getting good results when searching for R related topics, that means I have not found out yet what keywords I should use to get only relevant results. Most of the time I get also MATLAB related things and nothing related at all. The nature of this is of course the name of R consisting just of one letter. What keywords do you use? Or do you just go to certain
2016 Mar 01
2
Insert CallInst within a function passing same parameters of the calling function.
Hi, supposing I have a function “foo” like the following: int foo(int a, int b) { ... ... } I want to insert int the LLVM IR a call instructions to a function “bar” that requires the same parameters of foo. So my function foo will become: int foo(int a, int b) { bar(a,b); … ... } I am using the following code: bool ThreadSanitizer::runOnFunction(Function &F) {
2009 Jun 13
1
Portuguese translation problem (PR#13756)
Full_Name: Adriano Azevedo Filho Version: 2.9.0 OS: Windows Vista Submission from: (NULL) (201.68.79.62) The error message produced when the function name typed in the console is misspelled in the Portuguese translation. This is not a new issue but as it is around for sometime I've decided to report. As this is a frequent message when beginners start using R, it gives an unfortunate bad
2010 Feb 26
1
match.call to obtain the name of a function
Within a function I'd often like to obtain a text string equal to the name of the function. One use for this: To generate a filename for use in pdf(). This enables me to keep track of which function generated a particular graphic came. match.call() puts parentheses at the end of the name. I don't want parentheses in a filename. The following kludgey function gives the desired result.
2009 Dec 04
1
no html help upon upgrading to 2.10
I just upgraded from 2.8.1 to 2.10 on Windows Vista. BIG MISTAKE apparently because now when I type: > help(functionname) or ?functionname I get only a small text window giving some very basic info on the topic, e.g.: base-package package:base R Documentation The R Base Package Description: Base R functions Details: This package contains the
2009 Feb 18
1
alpha shape function
Hi all, I want to approximate te shape of an area defined by a set of points. The convex hull is not good enough, but I think that an alpha shape would be fine. I did an RSiteSearch(), google search, RSeek.org search, looked at the CRAN Views, but was unable do find a function in R that computes the alpha shape. Does anyone know if there is such a function in R? Theank you very much. Moacir
2009 May 20
10
How to google for R stuff?
Hi! I'm new to R programming, though I've been programming in other languages for years. One thing I find most frustrating about R is how difficult it is to use Google (or any other search tool) to look for answers to my R-related questions. With languages with even slightly more distinctive names like Perl, Java, Python, Matlab, OCaml, etc., usually including the name of the language
2011 Dec 17
1
cp2tform equivalent
I'm a new R user and am looking for an R equivalent to the Matlab 'cp2tform' function (see: http://www.mathworks.com/help/toolbox/images/ref/cp2tform.html). cp2tform accepts pairs of 2D control points and produces a least-squares optimized spatial transformation from one set of points to the other. Specifically, I'm looking to produce the coefficients of a 3rd order polynomial
2017 Jun 27
3
Testing utility for building and updating CFG
Hi folks, I’m working on adding an API for incremental updates to DominatorTree and I noticed that there isn’t a simple way to quickly build and update CFG (just for testing) -- one has to either build CFG programmatically, or write IR by hand and manually map pointers to basic blocks. The downside is that it tends to be pretty verbose and not easy to update (e.g. adding a new edge often involves
2007 Apr 05
8
package for Matlab
Hallo, does a package for Matlab exist in R? If yes, where can I find it and how can I install it under R? Thanks, Corinna
2008 Jul 29
2
R command history -- can it be like Matlab's?
Hi all, In R GUI window, if you use "up" and "down" key, you will be able to recall the previous and next command that has been used and stored in the command history cache. But there is one inconvenience: In Matlab, you can type the first a few characters of the command that you previously used, and then press ?up" key, you will be able to get to that previous
2006 Aug 28
1
Bug/problem reporting: Possible to modify posting guide FAQ?
If users post a bug or problem issue to an R-based news group (R-devel, R-help, BioC - though BioC is far more forgiving) they get yelled at for not reading the posting guide and FAQ. "Please *_do_* read the FAQ, the posting guide, ..." the yellers do say. So I read the BioC FAQ and it says... http://www.bioconductor.org/docs/faq/ "Bug reports on packages should perhaps be
2006 Aug 28
1
Bug/problem reporting: Possible to modify posting guide FAQ?
If users post a bug or problem issue to an R-based news group (R-devel, R-help, BioC - though BioC is far more forgiving) they get yelled at for not reading the posting guide and FAQ. "Please *_do_* read the FAQ, the posting guide, ..." the yellers do say. So I read the BioC FAQ and it says... http://www.bioconductor.org/docs/faq/ "Bug reports on packages should perhaps be
2012 Apr 25
2
[LLVMdev] Crash in JIT
Hello, [Using LLVM r155315, according to `svn log | head`] I am experimenting with programatically building and jitting functions in a module, and I seem to be coming across a crash in some generated code. Using the llvm-c interface I build up the module which dumps like this: ; ModuleID = 'MyModule' target datalayout = "i686-apple-darwin11" target triple =
2006 Aug 16
5
Autocompletion
Hi there! I may be guilty of not doing my homework, but still, I've searched. I'm a relative newcomer to R (my forte is at present MATLAB, but for various reasons I'm trying to get literate in R). My question is: Is there an autocompletion feature buried somewhere in R? All the best Óttar [[alternative HTML version deleted]]
2008 Apr 29
1
how to solve a power series linear coefficient equation
Readers, I am having difficulty understanding how to enter commands into r. I have data arranged as: 100, 200, 300 5.6, 6.7, 7.8 8.9, 9.0, 0.1 1.2, 2.3, 3.4 The data is saved in csv format and I use the command 'read.table' to import into r. The values 5.6...3.4 are a function of values 100,...300, i.e. 100,...300 are independent variables (x). The function is a power series: