Displaying 10 results from an estimated 10 matches for "testfunctions".
Did you mean:
test_functions
2000 Dec 29
2
how to create help files
...functions, which works all very well,
apart from that I am not able to create appropriate help files.
For illustration, here is a simple example of where I'm stuck:
> # first, create a simple function f1:
> f1 <- function(x) x^2
> # create directories where a package called "testfunctions" with my own
functions will live:
> R.home()
[1] "D:\\Programme\\R\\rw1020"
> mypath <- paste(R.home(),"\\library\\testfunctions", sep="")
> mypath
[1] "D:\\Programme\\R\\rw1020\\library\\testfunctions"
> dir.create(mypath)
> dir.create...
2011 Sep 26
1
Disabling Auto-complete
Hi,
I am a new user to R.
I am having the following problem while using R:
The defined function is having following a$unit as input but if I define
a$unit1 then still I am getting the output which is not desired.
__________________________
*Function:*
testfunction<-function(a){
stopifnot(a$unit==1)
cat("All is well")
}
b<-list(unit1=1 )
testfunction(b)
2016 Sep 19
3
llvm interpreter does not find function defined by addGlobalMapping
Hi,
I want to use a function defined in c(++)-code from code generated by llvm. For this I use ExecutionEngine.addGlobalMapping(). I started with the JIT execution engine and everything worked, then I switched to the interpreter engine and it stopped working, but only if compiled on a Linux system. More precisely it works if I use
llvm 3.8.1 + gcc (Linux) + JIT
llvm 3.8.0 + mingw-gcc
2001 Jan 05
2
running Rcmd INSTALL, again
Ok, one last try. R1.2.0, WinNT 4.0:
[R is installed in: R_HOME=D:\Programme\R\rw1020]
Can anyone give a hint what the following error message (when running Rcmd
INSTALL) means and what to do about it?
cd D:\Programme\R\rw1020\src\library
D:\Programme\R\rw1020\bin\rcmd install testfunctions
make: Entering directory `/cygdrive/d/Programme/R/rw1020/src/gnuwin32'
dlltool -k --as as --dllname R.dll --def R.exp --output-lib libR.a
make: dlltool: Command not found
make: *** [libR.a] Error 127
make: Leaving directory `/cygdrive/d/Programme/R/rw1020/src/gnuwin32'
*** Installation of...
2009 Nov 12
1
saving custom functions to existing library
Hi all,
I writen one function in Rgui(R Editor) I saved it as testfunction.R and
while I am running that file using
source(C:/testfunction.R) its running and it is giving subsequent
result
insted of this there is any thing like to save my function to save in
existing library
to reuse it when ever I want to use because I have to use those function
from my C# code right now I am not able to
2010 Feb 08
1
Help with assigning values to a row or column
Hello,
I am attempting to write a function that assigns a value to a row or column
within the matrix that it runs on. I am, however, having trouble accessing
the row or column within this dynamic variable. I have looked through the
archives (nothing there) and read the rules for posting to this list. Please
help me out!
Here is a sample of the problem:
testMatrix = matrix(data=2, nrow=10,
2009 Oct 27
2
Why 'return' is needed in R?
It seems that 'return' is not necessary when returning a value. If
this is the case, I don't understand why 'return' is a keyword in R.
Is there a case in which I have to use 'return'?
> f<-function(x) {
+ x
+ }
> g<-function(x) {
+ return(x)
+ }
> print(f(2))
[1] 2
> print(g(2))
[1] 2
>
2007 Dec 17
1
cor.test formula
Hi everybody,
I am interested in seeing how the p value is calculated for a t test for a correlation coefficient. I know that cor.test delivers the correlation coefficient and the t-test, p-value and the 95 confidence interval. I am interested in how the p-value is calculated.
Usually if i type the name of the function i get explicitly the coding of that function, but if i type
>
2011 Jul 23
6
Rails 3.1 CoffeeScript not working
I convert my old JS files into CoffeeScript, In my public controller I
used this functions
$(''#events a'').lightBox()
$(document).ready ->
$("#slider").easySlider
auto: true,
continuous: true
they load inside application.js like this
(function() {
$(''#events a'').lightBox();
$(document).ready(function() {
2001 Jan 05
2
AW: running Rcmd INSTALL, again
...talled in: R_HOME=D:\Programme\R\rw1020]
> >
> > Can anyone give a hint what the following error message (when running
> Rcmd
> > INSTALL) means and what to do about it?
> >
> > cd D:\Programme\R\rw1020\src\library
> > D:\Programme\R\rw1020\bin\rcmd install testfunctions
> > make: Entering directory `/cygdrive/d/Programme/R/rw1020/src/gnuwin32'
> > dlltool -k --as as --dllname R.dll --def R.exp --output-lib libR.a
> > make: dlltool: Command not found
> > make: *** [libR.a] Error 127
> > make: Leaving directory `/cygdrive/d/Progra...