search for: reilich

Displaying 3 results from an estimated 3 matches for "reilich".

2005 Nov 28
6
How define global Variable?
Hello, I try to define a global variable. My example: R> a <- "old" R> test <- function () { a <- "new" } R> test() R> a # shoud be "new" This doesn't work. I would like to modify the variable "a" in a procedure. How can I do that. Thank you for helping. Sven Kn侟ppel (Germany-Berlin)
2005 Nov 29
1
package kinship - %*%
Hello, I like to use the package "kinship" (R version 2.2.0). After loading this package the operator %*% doesn't work. Example: R> library(kinship) R> a <- cbind(1:2,rnorm(2)) R> a%*%a Error message: Fehler in a %*% a : keine anwendbare Methode f侟r "%*%" The Message in English: Error in a %*% a: no applicable message for "%*%". What can I do?
2007 Apr 24
1
Problem with length of array while calling C from R
Hello, my problem is that I don't know how long must be an array of double while calling C from R. R-Code: > array <- c(1,1,1) > save <- .C ( "Ctest" , a = array ) C-Code: void Ctest ( double *array ) { ... array = (double*) realloc ( array , new_number * sizeof(double) ) ; ... } The length of "array" will be compute in C. At the end save$a has a length