[R] apply ? function doesnt create object

2007-03-03 Thread bunny , lautloscrew.com
hello, i have written a function to extract certain lines from a matrix. the result is a matrix with 6 cols, named dynamically according to the functions arguments. the problem is now, that i'm not able to return the resultmatrix for further use. the object is not being created. example

Re: [R] apply ? function doesnt create object

2007-03-03 Thread Charilaos Skiadas
On Mar 3, 2007, at 4:28 PM, bunny , lautloscrew.com wrote: Please use - for assignments instead of = : getans = function(x=qids,bnr=1,type=block) { #generate name of matrix matnam=paste(ans,type,as.character(bnr),sep=) #display result matrix