search for: num_b

Displaying 1 result from an estimated 1 matches for "num_b".

Did you mean: num_mb
2009 Apr 09
2
how to automatically select certain columns using for loop in dataframe
...re certain condition (for example, part of the column name). I am using for loop, as follow: # below is the sample data structure all.data <- data.frame( NUM_A = 1:5, NAME_A = c("Andy", "Andrew", "Angus", "Alex", "Argo"), NUM_B = 1:5, NAME_B = c(NA, "Barn", "Bolton", "Bravo", NA), NUM_C = 1:5, NAME_C = c("Candy", NA, "Cecil", "Crayon", "Corey"), NUM_D = 1:5, NAME_D = c("David", "Delta",...