Skip to content
Prev 324216 / 398503 Next

SAPPLY function for COLUMN NULL

colnames(dd)
#[1] "col1" "colb"
null_vector<- colnames(dd)
sapply(null_vector,makeNull,dd)
#???? col1 colb
#[1,]?? NA??? 4
#[2,]??? 2?? NA
#[3,]??? 3??? 2
#[4,]??? 4?? NA
#[5,]??? 1??? 4
#[6,]?? NA??? 5
#[7,]??? 1??? 6
A.K.
or high value in that column. I need to do this process repeatedly, 
hence I >have to define a function. Here is the code, that I am using and is not working. Please advise on where I am making an error.