Skip to content

Why does 'apply(.., 1, .., ..)' transpose result

2 messages · Worik R, Charles C. Berry

#
On Fri, 23 Apr 2010, Worik R wrote:

            
Well, try

 	?apply

and focus on the 'Value:' section, first para.

To me, that behavior seems consistent with other functions in 
the [tslm]apply family.

Perhaps you want sweep(). See

 	?sweep

HTH,

Chuck
Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901