Displaying 20 results from an estimated 200000 matches similar to: "about create a R package"
2005 Mar 09
2
How to use a R package with C code
Hello, everybody,
I created a R package which includes C code. But I load this package, and carry
out the R function in it. It shows C function is not in load table as follows.
Would you tell me what is the problem? Where do I make mistake?
Maggie
[Previously saved workspace restored]
> library(var)
Attaching package 'var':
The following object(s) are masked _by_
2005 Jan 05
2
How to connect R with a C code which includes Atlas
Hello, everybody,
Happy New Year!
I am a graduate student from Concordia University. I meet a problem when I am
working on my thesis. I hope I will get help from you.
I have a mathematical model which was already implemented by using R language.
However, part of this model includes fixed point iteration algorithm and
calculation of large linear equations which n will get to 5000. Because of
2005 Mar 10
1
about R CMD check
hello, everybody,
I create a package by myself named "var" on Linux system. I attach a C code
which uses "R_ext/Lapack.h" in directory "src". But when I carry out " R CMD
check var", it shows
> wxt0124()
Error in .C("wxt1221", PACKAGE = "var") : C function name not in DLL for package
var
Execution halted
Could you tell me what is
2005 Jan 21
1
How to use a C code in R
hello,
I have a c code which uses clapack. I want to integrate R with this code. It
said that I create a R package including my c code. Then build it with putting
PKG_LIBS = $(LAPACK_LIBS). I want to know the interface LAPACK_LIBS is Fortran
or C? If it is written in Fortran, how can I build them together? If I can
build them together, I still use the function in cLapack or the function in
2004 Apr 14
1
question about /nmath/standalone
Hello,
I can't link a c code with Mathlib according to introduction of R
manual "Writing R Extensions", page 60.
It is written :
"It is possible to build Mathlib, the R set of mathematical functions
documented in
'Rmath.h?, as a standalone library 'libRmath? under Unix and Windows. (This
includes
the functions documented in Section 5.7 [Numerical analysis
2004 May 13
1
question about dyn.load()
Hello, everybody,
I met a big problem. What I want is to use c code in R. I have load a test
code "conv.c" in R and run it successfully. However, in my real code, I use
matlab c library (Matrix Inverse function). After I use command "R CMD SHLIB"
to share library, I can not use "dyn.load" to load the object in
R. "undefined symbol:
2005 Jan 25
2
about R CMD check
hello,
I create a package which includes C code and Lapack. But when I run " R CMD
check ". an error message, "/usr/bin/ld: cannot find -lfrtbegin " occurs. could
you tell me what is the problem?
the detailed message is as follows:
[credsim@confsys ~/src]$ R CMD check var
* checking for working latex ... OK
* using log directory '/home/credsim/src/var.Rcheck'
*
2004 Apr 22
2
Urgent:again question about nmath/standalone
Hello, all,
I have the same question as the last mail I sent. I have installed libRmath in
my system. But I still can not link Rmath through -lRmath. The whole process
is as follow.Is there anybody who is so kind to help me find out the problem?
I will appreciate very much.
[credsim at confsys ~]$ cd /usr/lib
[credsim at confsys lib]$ ls -l libR*
-rw------- 1 bcdesai bcdesai 237828 Apr
2007 Dec 27
1
(package e1071) SVM tune for best parameters: why they are different everytime i run?
Hi,
I run the following tuning function for svm. It's very strange that every
time i run this function, the best.parameters give different values.
[A]
>svm.tune <- tune(svm, train.x, train.y,
validation.x=train.x, validation.y=train.y,
ranges = list(gamma = 2^(-1:2),
cost = 2^(-3:2)))
# where train.x and train.y are matrix
2005 Jul 07
1
look for help on nlm in R
Hi,
I had a hard time in learning nlm in R and appreciate any help.
I encounted the following error message from time to time when I tried different starting parameter values (three parameter values in this case) in nlm(f=SS.fun,p=c(0.1/40,0.1,2),hessian = FALSE,N.measure=object,h=20)
Error in f(x, ...) : only 0's may mix with negative subscripts
Basically I know the three parameter
2004 Jun 15
2
About function "unif_rand()"
hello, everybody,
I met a problem that I want to generate a random uniform number by using
function with c interface.
What I found is only "unif_rand()", but its range is [0,1]. How can I create a
uniform random variable by using a function with c interface.
Who can tell me what function it is and how to use?
I will appreciate for it very much.
Thanks in advance!
xiaotong wang
2003 Jul 08
3
Characters and Numeric Values in One Matrix
Dear R-Users,
I want to ask a question for a colleague of mine. He wants to put a
character vector and a numeric vector into one matrix and still have the old
character and numeric type for the respective columns.
Unfortunately, I am just starting using R and I could not help him.
Is there an easy and straightforward way to do this in R?
Maybe a little example facilitates understanding our
2010 Feb 17
0
Does the R "statistical language includes, > modules/packages to carry out nonlinear optimization similar to the, > SAS NLIN and NLP procedures?
There is also the OptimizeR project on R-forge
http://r-forge.r-project.org/R/?group_id=395. Other related projects are there also, but
I'll let their authors speak for themselves. Stefan Theussl did a good job in the Task
View, but it is from last June, and it would be a monumental effort to keep up to date
with all the work going on.
We're "almost" ready to put some of our
2011 Apr 27
1
Problem about step and stepAIC
Hello,
I am now running a multiple linear regression program, but I do not know the
difference between the command step and stepAIC.
Thanks.
Maggie
[[alternative HTML version deleted]]
2011 Oct 24
1
Problem about plotting the correlation coefficients
Hi,
I am writing a program to plot the correlation coefficients of 45 elements
using the commend "plot". Error message "Error in plot.new() : figure
margins too large" appeared. I think it may because there are too many
elements. But I really need to find their correlation coefficients. What can
I do? Thank you.
Maggie
[[alternative HTML version deleted]]
2009 Mar 26
1
Extreme AIC in glm(), perfect separation, svm() tuning
Dear List,
With regard to the question I previously raised, here is the result I
obtained right now, brglm() does help, but there are two situations:
1) Classifiers with extremely high AIC (over 200), no perfect separation,
coefficients converge. in this case, using brglm() does help! It stabilize
the AIC, and the classification power is better.
Code and output: (need to install package:
2010 Feb 16
1
Does the R "statistical language includes modules/packages to carry out nonlinear optimization similar to the SAS NLIN and NLP procedures?
Hello R folks,
I'm hoping the answer to the question in the subject line.
I have in the past used SAS PROC NLIN and PROC NLP to carry out
nonlinear optimizations. I'm wondering if there is analogous ways for
doing this using R. If so, could someone please point me to some
literature that would help me examine this further?
Thanks very much.
[[alternative HTML version deleted]]
2009 Jan 02
1
Basic Question about use of R
Dear Sirs:
I am not yet a user of R. My background includes the use of (Turbo)
Pascal for scientific analysis of underwater acoustics problems (e.g.
sound ray tracing and array gain in directional noise fields.)
I have become interested in the following type of problem:
(1) select , say, 1000 random locations within the continental United
States;
(2) characterize (statistically) the
2009 Mar 18
3
Extreme AIC or BIC values in glm(), logistic regression
Dear R-users,
I use glm() to do logistic regression and use stepAIC() to do stepwise model
selection.
The common AIC value comes out is about 100, a good fit is as low as around
70. But for some model, the AIC went to extreme values like 1000. When I
check the P-values, All the independent variables (about 30 of them)
included in the equation are very significant, which is impossible, because
we
2002 Jan 17
1
detach(package:base) kills R (PR#1271)
Full_Name: David Heffernan
Version: 1.3.1
OS: Windows & Linux
Submission from: (NULL) (158.152.160.7)
The command detach(package:base) kills R with segmentation fault on Linux and an
access violation on Windows. I guess the same will happen on any platform.
Obviously this is a not a sensible command to execute but you could easily do it
by accident particularly if using the pos parameter