Displaying 20 results from an estimated 160 matches similar to: "Interfacing R_project from program languages"
2005 Jun 07
9
how to define functions in such a situation
hi R folks,
I need read a file from hardisk or www web. Then I need to define some
new functions according to the contents of the read file.
For example, i need write a package name "mypackage" like this:
>library(mypackage)
>read(some_file_on_web) #to see its content, suppose it contains:
eat.drink.sleep
then 3 new functions need to be created and usable.
the problem is, how
2008 Dec 31
3
Paste in a FOR loop
Hi All,
I've been having a little trouble using R2HTML and a loop, but can't figure
out where the problem lies, any hints gratefully received.
My code at the minute, (Which does work) is in the following:
library(R2HTML)
HTMLStart(outdir =
file.path("C://Example_work","R_projects","Dynamic_creative"),filename =
"RMDC_mockup",Title="Mock up for
2012 Apr 05
2
count() function
I keep expecting R to have something analogous to the =count function in
Excel, but I can't find anything. I simply want to count the data for a
given category.
I've been using the ddply() function in the plyr package to summarize
means and st dev of my data, with this code:
ddply(NZ_Conifers,.(ElevCat, DataSource, SizeClass), summarise,
avgDensity=mean(Density),
2013 Nov 20
1
Binomial GLM in Stata and R
Hello,
I'm not a Stata user so I'm trying to reproduce Stata results that are given to me in R. I would like to use a GLM with a complementary log-log function. The stata code I have is:
glm c IndA fia, family(binomial s) link(cloglog) offset(offset)
The R code is:
glmt <- glm(data=dataset, c ~ IndA + fia, offset = offset, family = binomial(link = cloglog))
Which yields
2008 Sep 24
1
R on Mandriva
Hi there,
I am looking to install R on Mandriva-linux. But on the UK mirror site
I found only Debian, Redhat, Suse, and Ubuntu, but not Mandriva.
Any help would be greatly appreciated
Thanks
--
------------------------------------
Abdel Hannachi
Reading, UK
2008 Sep 13
3
R rpm for Mandriva 2008.1 ?
Are there any R rpm's for Mandriva 2008.1? I found a couple of dodgy
ones that wouldn't install so far (rpmfind.net).
(Sorry that seems so far the only Linux distribution that recognizes my
hardware on my new laptop correctly. I'm more familiar to Fedora and
Suse so perhaps I'm just doing something wrong?)
Joanne
2009 Apr 13
2
weighted mean and by() with two index
Hi expeRts,
I would like to calculate weighted mean by two factors.
My code is as follows:
R> tmp <- by(re$meta.sales.lkm[, c("pc", "sales")],
re$meta.sales.lkm[, c("size", "yr")], function(x)
weighted.mean(x[,1], x[,2]))
The result is as follows:
R> tmp
size: micro
yr: 1994
[1] 1.090
2012 Feb 26
0
Comments on R_exts section 1.6.6, Namespaces with S4 classes and methods
> R.version.string
[1] "R Under development (unstable) (2012-02-26 r58493)"
In the recent addition "It is important if you export S4 methods that
the corresponding generics are available: the requirementa on this are
stricter as from R 2.15.0. You may for example need to import plot from
graphics to make visible a function to be converted into its implicit
generic. But it is
2009 Jul 01
0
The step before interfacing to GRASS
Dear all,
A very basic terrain calculated as a matrix from Spatial Points Patterns:
#interpolate using the akima package
library(akima)
terrain=interp(ppoints$x,ppoints$y,ppoints$marks,xo=x0,yo=y0, linear=F)
> class(terrain)
[1] "list"
> class(terrain$x) #these are the x-coord i.e: [1...1000]
[1] "numeric"
> class(terrain$y)#these are the y-coord i.e: [1...1000]
[1]
2012 Nov 08
0
FW: Interfacing R and Weka
-----Original Message-----
From: Patrick Connolly
Sent: Friday, 9 November 2012 11:29 a.m.
To: Peter Alspach
Subject: Interfacing R and Weka
> version
_
platform x86_64-unknown-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 2
minor 15.2
year 2012
month 10
day 26
svn rev
2008 Feb 03
0
Sample code for interfacing with F90
Hello List,
I saw the example in "Writing R Extensions" where a convolve function
is implemented in C, which is makes the whole business of calling C
from R easy to understand.
Is there a similar example of how to call Fortran 90 from R somewhere?
Thanks,
Max
2002 Feb 26
1
RQuantLib -- Interfacing QuantLib from R
I just uploaded an initial RQuantLib package to R's site in Vienna.
RQuantLib is an R [ http://www.r-project.org ] package to access the powerful
QuantLib [ http://quantlib.org ] libraries for quantitative finance.
RQuantLib is at an early stage: I only defined two basic classes Option and
ImpliedVolatility with print and summary methods, and European and American
options on top of them.
1999 Feb 08
1
R-bugs interfacing to R-devel mailing list
I've been hacking at the JitterBug sources a little, so that it should
work better with mailing lists. It has been running with the core team
list for a while and seems to be OK.
I will now move the forwarding address to the r-devel list where it
really belongs. I hope this will make it easier for people outside the
core team to contribute to the development of R by participating in
the
1999 Feb 08
1
R-bugs interfacing to R-devel mailing list
I've been hacking at the JitterBug sources a little, so that it should
work better with mailing lists. It has been running with the core team
list for a while and seems to be OK.
I will now move the forwarding address to the r-devel list where it
really belongs. I hope this will make it easier for people outside the
core team to contribute to the development of R by participating in
the
1999 Jul 16
0
Advice interfacing to an imaging library
Hi All,
I've done some work recently making some of our image analysis library
callable from R and Splus. Most of the C image functions use an abstract
data type, and R only sees a pointer to this. All memory allocation is
done by the library. This leads to some interesting problems. I'm
interested in your views about possible solutions.
1) assignment. something like a<-b, where a and
2009 Apr 02
0
[LLVMdev] patch: MSIL backend - interfacing vararg pinvoke functions with Mono
Hi,
This patch allows executing code with vararg pinvoke functions under
Mono. It generates separate function declaration for each call signature.
Artur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: varargs.patch
Type: text/x-patch
Size: 5331 bytes
Desc: not available
URL:
2013 Oct 25
1
[LLVMdev] Interfacing llvm with a precise, relocating GC
On 10/24/13 2:50 PM, Rafael EspĂndola wrote:
> On 24 October 2013 17:32, Sanjoy Das <sanjoy at azulsystems.com> wrote:
>> Hello llvm-dev!
>>
>> My colleages and I are currently evaluating llvm's suitability as a
>> JIT compiler interfacing with a precise, relocating garbage collector.
>> While we couldn't find code or writeups that deal with the
2004 Nov 27
1
Interfacing T100P with Definity PBX
Hi,
I have two t100p cards installed. One card connected to the PSTN,
the other card is hooked to the Definity PBX with a T1 cross over
cable. The card connected to the PSTN works fine.
The problem is with the card hooked up to the PBX. The light behind
the card is green, but when I dial from this card I get an error. Its
says it could start the D-Channel. Could someone help me out with this
2005 May 09
1
Interfacing AT&T Spirit System to Asterisk
Greetings,
Does anyone know if there is a cost effective way to interface an
older AT&T Spirit system into Asterisk.
I'm only interested in A) being able to offer voicemail and B)
possibly an AAT to callers.
I've thought about just stringing the FXO cards into the line1/2 slots
that go into the Spirit system... asterisk would pickup if no one
answered the Spirit phones....
however....
2010 Jan 12
0
Interfacing to NEC Xen Master PBX
Hi,
We are currently in the process of installing an Asterisk box between
our legacy PBX (NEC Xen Master) and the Telco (Telstra). Originally the
PBX was connected to the telco via 8x BRIs. Our new Asterisk box has
been setup with 2 OpenVox B800P cards. Each card has the 4 ports in TE
mode and 4 ports in NT mode. The NEC PBX is connected to the Asterisk
boxes NT ports and the Asterisk box is