Displaying 20 results from an estimated 1300 matches similar to: "Call C code from R"
2007 Sep 17
3
Call C code from R
Hello, All!
I'm new for R-devel list. And I'd like to ask some questions,
maybe they will be stuped for the most part of members of the
list.
I need to call function which is written in C++ from R.
My questions are:
1. How should I include libraries (for example, iomanip,
sstream, iostream)?
2. Can I use namespace?
Thanks All :)
Olga
2013 Jul 04
1
R-devel Digest, Vol 125, Issue 2
Hi all,
I have a problem but i am not sure that this is the right mailing list.
I'm writing a R program which call a C++ program, through the function .Call. I use to compile the c++ script with the command
R CMD SHLIB SpTempWrapC.cpp -Wall -l covmodel.h -l util.h
Everything works fine since, for mistake, i paste in the terminal the content of the r-script. Now, when i try to compile,
2016 Apr 18
1
ZINB multi-level model using MCMCglmm
Hi,
I am Olga Viedma. I am running a Zero-inflated negative binomial (ZINB) multi-level model using MCMCglmm package. I have a doubt. Can I use the "Liab" outputs as fitted data, instead of the predicted values from "predict"? The liab outputs fit very well with the observed data, whereas the predicted values are so bad.
Thanks in advance,
Olga Viedma
D . Olga
2010 Apr 14
2
brtfs on Solaris? (Re: [osol-discuss] [indiana-discuss] So when are we gonna fork this sucker?)
brtfs could be supported on Opensolaris, too. IMO it could even
complement ZFS and spawn some concurrent development between both. ZFS
is too high end and works very poorly with less than 2GB while brtfs
reportedly works well with 128MB on ARM.
Olga
On Wed, Apr 14, 2010 at 5:31 PM, <Casper.Dik at sun.com> wrote:
>
>
>>Just a completely different question...is there any plans
2010 Aug 05
3
PageUp/Down in gnome-terminal
Dear all,
I am using gnome-terminal to run R, and I noticed that standard
PageUp/Down do not work but they do work for other programs within the
same terminal window (e.g. irssi). Scroll bar does not work either.
I run R using GNU-screen, but it doesn't seem to make any difference.
Many thanks
Olga
------------------
R version 2.11.1 (2010-05-31)
2010 x86_64 GNU/Linux
Ubuntu 10.04.1 LTS
2008 Jul 25
2
[LLVMdev] Slightly improve bugpoint output
Hi all,
after seeing a near inifinite stream of "Checking instruction ''" from
bugpoint, I thought to improve that a bit. Turns out that bugpoint outputs the
name, which is often empty (especially for the big bitcodes you want to pull
through bugpoint :-).
Below patch changes the behaviour to output the assembly version of the
instruction instead of the name, which makes things
2010 Sep 02
2
lower triangle of the correlation matrix with xtable
Dear all,
mydata<-data.frame(x1=c(1,4,6),x2=c(3,1,2),x3=c(2,1,3))
cor(mydata)
x1 x2 x3
x1 1.0000000 -0.5960396 0.3973597
x2 -0.5960396 1.0000000 0.5000000
x3 0.3973597 0.5000000 1.0000000
I wonder if it is possible to fill only lower triangle of this
correlation matrix? Using 'dist' doesn't seem to be useful as it doesnt
allow to convert this table
2010 Mar 14
6
barplot with a probability density curve
Dear all,
I am making a barplot as following:
barplot(c(1,2,3,5,2,3,1),names.arg=c("100","200","300","400","500","600","700"),xlab="diameter",ylab="flow",main="some title",space=0.1)
I am also trying to add a probability density curve, however using
lines(density(c(1,2,3,5,2,3,1))) does not give
2009 Aug 04
3
read.csv from a remote machine
Dear all,
I am trying to import data with read.csv and my file is on remote
machine.
I believe that I need to open a connection, not sure about syntax
though.
I would appreciate any suggestions,
Thanks!
Olga
2011 Feb 04
2
vegan and sweave using xtable
Dear all,
Using:
library(vegan)
data(BCI)
mod <- radfit(BCI[1,])
mod
RAD models, family poisson
No. of species 93, total abundance 448
par1 par2 par3 Deviance AIC BIC
Null 39.5261 315.4362 315.4362
Preemption 0.042797 21.8939 299.8041 302.3367
Lognormal 1.0687 1.0186 25.1528 305.0629 310.1281
2010 Aug 03
2
multiple R sessions from one working directory using GNU screen
Dear all,
I am using GNU screen to run multiple R sessions from one working
directory in order to split task, however I noticed that dataset is not
synchronized e.g. if I have two sessions R1 and R2, and I remove an
object from R1, R2 doesn't change as expected or change at random.
I have tried to save.image(), q() and then restart both sessions, but it
does not help.
Any suggestions?
2010 Sep 01
3
standardize columns selectively within a dataframe
Dear all,
I have a dataframe:
df<-dataframe(a=c(1,2,3),b=c(4,5,6),c=c(7,8,9),d=c(10,11,12))
I want to obtain a new dataframe with columns a and b being standardized
((x-mean(x))/sd(x)); the other two columns (c,d) I want to leave
unchanged. What is the best way to achieve this? I have been trying to
use subscripts but did not succeed so far.
Any tips?
Many thanks,
Olga
2010 Aug 13
1
decision tree finetune
My decision tree grows only with one split and based on what I see in
E-Miner it should split on more variables. How can I adjust splitting
criteria in R?
Also is there way to indicate that some variables are binary, like variable
Info_G is binary so in the results would be nice to see "2) Info_G=0"
instead of "2) Info_G<0.5".
Thank you in advance!
And thanks for Eric who
2015 Aug 04
4
Working Documentation Toolchain [GSoC]
Hi,
The basic toolchain is up and running. I encourage community to test
this workflow once. It is an addition to the existing contributing
mediums.
Site: http://clown-olga-13325.bitballoon.com/
Contributing Docs repo : https://github.com/kunaaljain/test-centos-docs
==AIM==
Initial Idea : http://wiki.centos.org/GSoC/2015/Ideas#docs-toolchain
The CentOS Project needs more short-form
2008 Jul 25
0
[LLVMdev] Slightly improve bugpoint output
On Jul 25, 2008, at 7:33 AM, Matthijs Kooijman wrote:
> Hi all,
>
> after seeing a near inifinite stream of "Checking instruction ''" from
> bugpoint, I thought to improve that a bit. Turns out that bugpoint
> outputs the
> name, which is often empty (especially for the big bitcodes you want
> to pull
> through bugpoint :-).
>
> Below patch
2010 Aug 19
1
decision tree display
I am using "plot" and "text" commands to display the decision tree I built,
here is the code:
plot(fit, compress=TRUE)
text(fit, use.n=TRUE)
but the the result of this code is not readable. Text doesn't get fully
displayed (missing on the margines and overlapping in the middle). Where
can I get info on how to adjust the tree display and text size display?
Please help.
2007 Dec 03
2
interaction with C++ code (PR#10487)
Full_Name: Ian Wilson
Version: 2.6.1
OS: linux
Submission from: (NULL) (128.240.229.7)
The problem is new to R2.6.?. The code works as expected in R-2.5.0. I get the
problem with two different operating systems - an older redhat and new ubuntu
and with both g++4.1 and g++3.4.
I have a problem with character data that is passed back from C++ code. A small
example is the following C++ code
2018 Mar 18
0
WARNING: CPU: 5 PID: 74 at ../drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h:170 nvkm_dp_enable+0xbe/0x140
I have been getting the following splat for while now, guess its time to
report, this is on 4.15.8-1-default (OpenSUSE Tumbleweed). I could try
a more up to date kernel if we think this can be fixed.
Mar 16 16:48:18 olga kernel: kvm: SMP vm created on host with unstable TSC; guest TSC will not be reliable
Mar 16 18:28:59 olga kernel: WARNING: CPU: 5 PID: 74 at
2013 Jul 04
1
Installing Java on Centos
Hello,
I have recently tried installing Java on Centos 6.4 and have found that the
wiki tutorial for this subject is quite outdated (the proposed method
doesn't work on the new version as the spec file is outdated and there is
no need to rebuild the rpm with nosrc file anymore). I would like to post a
tutorial on installing Java on Centos that would be more up-to-date and
referring to the
2010 Aug 12
1
rpart package
Hi,
I am a brand new user and may be my question is too simple. I have R on
our (not Unix) server. I am trying to build a decision tree and the error
message says "couldn't find function rpart". Does it mean I have to ask our
server guy to install an additional package?
Thank you,
Olga
[[alternative HTML version deleted]]