Skip to content

Replace missing values in lapply

1 message · Doran, Harold

#
I hadn't thought of that. I use the following at one point in my program

tmp <- with(data, tapply(variable, index, table)) 

Which returns a list. So, I just went with it for the rest of my
program. I'm changing code now to arrays, I think you're right and this
may be a better representation. I need to walk through this and see what
turns up.

Thanks for the recommendation.