I have a dataset which I created by column binding using the cbindX function from the gdata package. This function allows me to bind columns with diffe
cbindX
gdata
You should read ?sapply manual. Below example of sapply with some extra arguments:
?sapply
sapply(allcolscomb, sd, na.rm=TRUE) sapply(allcolscomb, function(x) sd(x, na.rm=TRUE))