I have 2 different data frames and I am looking into trying to run the same function on each data table.
On every data frame there is a ClaimID variable and I would like to run a unique count on that variable for every table. The function i will be using will be the length combined with the unique function. Thanks!
this is the code i am using right now:
t <- data.frame(lapply(df.list,function(x)
cbind("PatientIDs", length(unique(x[,3])))))
I believe i wast the outcome dataframe to look like this though:
FREQ 1 2 4 7