Subset dataframe based on number of observations in each column
问题 I have one problem would you like to give me a hand. I tried to come up with solution, but I do not have any idea how to work it out. Please use this to recreate my dataframe. structure(list(A1 = c(87L, 67L, 80L, 36L, 71L, 6L, 26L, 15L, 14L, 46L, 19L, 93L, 5L, 94L), A2 = c(50L, NA, 73L, 58L, 47L, 74L, 39L, NA, NA, NA, NA, NA, NA, NA), A3 = c(NA, 38L, 10L, 41L, NA, 66L, NA, 7L, 29L, NA, 70L, 23L, 46L, 55L)), .Names = c("A1", "A2", "A3"), class = "data.frame", row.names = c(NA, -14L)) I have