search for: vv_

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

Did you mean: mv_
2002 May 15
0
language: bug or feature: vector-subscript of list (PR#1558)
...for assignment into recursive lists. I find this feature essential, so I eventually wrote the workarounds below. But I'm sure these are slow and ungainly. Could this feature not be added as a primitive? cheers Mark assign( '[[', function( var, ...) { pg_ .Primitive( '[[') vv_ as.name( 'var') for( i in c(...)) vv_ call( 'pg', vv, i) eval( vv) }) assign( '[[<-', function( var, ..., value) { i_ c( ...) if( length( i)<2) return( .Primitive( '[[<-')( var, i, value)) pa_ .Primitive( '[[<-') pg_ .Primitive(...