Re: [R] Odd behavior of a function within apply

2022-08-09 Thread Erin Hodgess
My “count1a” function was only looking for types of integers and characters. There were a few logical types, which were the source of the error. Thanks, Erin On Tue, Aug 9, 2022 at 11:33 AM David Carlson wrote: > Could you have columns that are not character or integer so that y is > never def

Re: [R] Odd behavior of a function within apply

2022-08-09 Thread David Carlson via R-help
Could you have columns that are not character or integer so that y is never defined in the function? count1a(1:5/3) Error in count1a(1:5/3) : object 'y' not found David Carlson On Mon, Aug 8, 2022 at 1:35 PM Erin Hodgess wrote: > OK.⁠​ I'm back again.⁠​ So my test1.⁠​df is 236x390 If I put in