1
I have two vectors, one with 387 codes and another with 3,000 occurrences of one or more of these 387 codes. I need to know how many times each of these 387 codes occurred in this vector of the 3,000 occurrences. I’ve done loops "for" and it worked, but the execution time is huge. I tried to use the command "table" but it didn’t work. I saw a suggestion from daniel but it creates a data-frame with two variables (ok) but with the same number of lines, which is not my case.
What didn’t work out in charge
table
? Also, provide your data set, or a part of it (commanddput
) so that your problem can be reproduced.– Rafael Cunha
I’m sorry, Rafael, I was using the "table" command inappropriately, now it worked. Thanks for the message,
– C Lederman