similar to: Ang: How to write efficient R code

Displaying 20 results from an estimated 2000 matches similar to: "Ang: How to write efficient R code"

2004 Feb 17
10
How to write efficient R code
I have been lurking in this list a while and searching in the archives to find out how one learns to write fast R code. One solution seems to be to write part of the code not in R but in C. However after finding a benchmark article (http://www.sciviews.org/other/benchmark.htm) I have been more interested in making the R code itself more efficient. I would like to find more info about this. I have
2004 Jan 08
0
(no subject)
Seems like get() is what you are looking for; e.g., try dim(get("a")), names(get("a")), etc. HTH, Andy > From: Sixten Borg > > Hello, > > I have trouble converting a character string to a R object. > Let me describe this by an example; > > > dim(a) > [1] 270 14 > > dim("a") > NULL > > > names(a) > [1]
2004 Jan 08
1
(no subject)
Hello, I have trouble converting a character string to a R object. Let me describe this by an example; > dim(a) [1] 270 14 > dim("a") NULL > names(a) [1] "Var1" "Var2" "Var3" "Var4" "Var5" "Var6" "Var7" "Var8" "Var9" [10] "Var10" "Var11" "Var12"
2006 Mar 24
1
R crashes when loading library/package; Windows, Cygwin
Dear list members, This is a question is about building an R package under windows and cygwin. Please bear with me. I have a package in R that compiles well on my stationary computer (WINDOWS NT, R 1.8.1 and prior), and the resulting (package_version).zip file works well there. It contains an R script file and a C file. After installing tools to build the package on my laptop, the package
2004 Feb 10
4
The ttest.c example in R under MS Windows
We are trying to compile and run the ttest.c example that comes with R (in C:\Program Files\R\rw1081\src\library\windlgs\src\ttest.c). After compiling it with MS Visual C++ we load the DLL with dyn.load. So far it seems good, but when we try to call it from R (after running C:\Program Files\R\rw1081\src\library\windlgs\R\windlgs.R) R crashes. We have tried changing the exports from DLL but have
2004 Mar 02
3
error() and C++ destructors
Hi, I am writing C++ functions that are to be called via .Call() interface. I'd been using error() (from R.h) to return to R if there is an error, but then I realized that this might be not safe as supposedly error() doesn't throw an exception and therefore some destructors do not get called and some memory may leak. Here is a simple example extern "C" void foo() { string
2004 Jun 24
3
R 1.9.0, special characters in variable names.
Hello all, I upgraded from R 1.8.1 to 1.9.0 (Windows XP), and spotted an odd thing. The last three letters in the Swedish alphabet are ??, ?? and ??. (In case they don't show correctly: they are a with a ring, a with two dots, and o with two dots (HTML: å ä ö). When I use these as variable names in a data.frame, odd things happen: In R 1.8.1, ?? (å)
2004 Sep 01
1
Advice on good programming practice, lexical scope
In "An Introduction to R" (See R help menu), there is an example of a function 'open.account' that makes use of the lexical scope in R. I have a set of functions that can be used to output R tables and graphics into a single report document. (I am aware that several tools can do this already). While reorganizing my code, I realize that I can collect my functions in a list, in
2000 Oct 20
1
bug in pnorm (PR#699)
Full_Name: James Michael Rath Version: all (I think) OS: doesn't matter Submission from: (NULL) (129.116.226.162) The code for pnorm in R was adapted from a Fortran library published in the ACM TOMS journal. The published version had a typographical error, though, which was pointed out in a second article published three years after the original. The error was that a macro/variable named
2002 Apr 16
2
Multithreading
Hi ! I wonder if the R application is capable of utilizing more than one CPU. I need to know since we run it on a SunFire 3800 with 8 750 USIII cpu:s and on a E420R with 4 USII cpu:s and we don't feel like we get the performance we could expect. I've seen some old discussions claiming that it isn't. With kind regards Lennart Araskoug
2016 Sep 03
0
Ang: Re: Ang: Ang: Re: Ang: Re: attaching storage pool error
Hi, John, and thank you! This was a very thorough and welcome response, I was wondering where all the storage guys were... I will get back to you with more details later, specifically about multipath, since this needs to be investigated thoroughly. I have, with trial and error method, during the elapsed time, been able to attach the NPIV pool LUN to a virtio-scsi controller, and it seems it
2016 Sep 02
0
Re: Ang: Ang: Re: Ang: Re: attaching storage pool error
On 08/24/2016 06:31 AM, Johan Kragsterman wrote: > > Hi again! > I saw this last week while I was at KVM Forum, but just haven't had the time until now to start thinking about this stuff again ... as you point out with your questions and replies - NPIV/vHBA is tricky and complicated... I always have try to "clear the decks" of anything else before trying to page how this
2000 Dec 07
1
Function ang?
Dear R users, can any one tell what the function "ang" means ? thx. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
2001 Apr 30
1
Swat in samba.
Hej. I am using Red Hat 7.1 and samba 2.2.0 TNG. I have installed RPM for red hat 7.0 but i don't think this is a problem.
2016 Sep 03
2
Ang: Ang: Re: Ang: Ang: Re: Ang: Re: attaching storage pool error
Hi! Report from my multipath tests today. My test virtual machine, that runs from an NPIV pool, is not able to use multipath. When I pulled the cable from one of the targets, it crashed. But, strangely, it could boot up again on that other path, that it just crashed on. That tells me it can use both paths, and is not limited to one of them only, but because the multipath layer isn't
2007 Dec 06
0
How to get the users ang groups on the WINDOWS 2003 ADS
Hi,As we all know that using "wbinfo -u "or "wbinfo -g " we can get users or groups of A windows 200x ADS. And How can we write a c program to get a list of users and groups and keep them in a array ? Trendy From rsa at rb-com.com Thu Dec 6 03:17:31 2007 From: rsa at rb-com.com (Ray Anderson) Date: Thu Dec 6 03:18:00 2007 Subject: [Samba] missing
2013 Feb 11
1
[LLVMdev] x86 vs. i386 in clang ang llvm
Hi, I'm a bit confused with regard to the use of x86 and i386 in clang and llvm tools. I'm using clang to emit llvm with –m32 on a x86-64 machine. This generates a file with a target triple that uses i386. >From the i386 llvm file I generate a .bc file with llvm-as. When I try to generate an object file with llc -mtriple x86 -filetype=obj I get the following error: llc: target does
2004 Sep 29
0
Ang: Re: Dutch (DTMF) caller-ID
Hi all! I am in the same situation here in Sweden, but I just got the X100 card and don t get it to work with DTMF caller ID. Is the only way to solve this to buy a TDM400 card w FXO modules? Is it just a driver question or a HW issue with the X100 card? Where to find dok about the new keywords in conf files like "cidstart=polarity" in zapata.conf? rgds Gunnar >>>
2020 Oct 02
0
Unable to compile with R CMD INSTALL on windows when sourcing from Rprofile
Hello, I am currently facing a rather unusual situation. I am running the following command on two windows 10 machines: C:\\Program Files\\R\\R-3.6.3\\bin\\R.exe CMD INSTALL -l ".envs\\default\\lib"
2002 Apr 16
1
Benchmarks
Hi ! Is there anyone that has any current benchmark results from Sparc CPU's ? I'm mostly interested of US-III 750 and US-II 450, But any US-II/III would be interesting. Regards Lennart Araskoug Astra Zeneca R & D Lund, Sweden -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html