Hello, 
   
  Is it possible to pass R matrix as a parameter to an internal C procedure?
  From the documentation I got the impression that only 1-dim vectors can be 
passed. 
  Why the following wont work for me?
   
   
  > a<-matrix(1:15,3,5)
> .C("pr",as.integer(a))
   
  void pr(int **a){
  a[1][1]=100;
}
   
   
  Thanks,
  Johan
   

                
---------------------------------


        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to