search for: antsmatrix_aslist

Displaying 1 result from an estimated 1 matches for "antsmatrix_aslist".

2012 Sep 19
1
different behavior accessing type-specific as.data.frame inside a function vs inside R shell
...tsMatrix", "float" ) b <- as.data.frame( a ) this all works fine and i am pleased. fyi, the implementation of as.data.frame is: setMethod( f = "as.data.frame" , signature( x = "antsMatrix" ) , definition = function( x ) { lst = .Call( "antsMatrix_asList" , x ) names(lst)[ 1 : (length(lst)) ] <- lst[[ length(lst) ]] lst[[ length(lst) ]] <- NULL as.data.frame(lst) } ) now the problem comes when i try to access the same functionality in a function that is within my package R source. i.e. the function is defin...