Paste multiple columns together

# your starting data.. data <- data.frame(‘a’ = 1:3, ‘b’ = c(‘a’,’b’,’c’), ‘c’ = c(‘d’, ‘e’, ‘f’), ‘d’ = c(‘g’, ‘h’, ‘i’)) # columns to paste together cols <- c( ‘b’ , ‘c’ , ‘d’ ) # create a new column `x` with the three columns collapsed together data$x <- apply( data[ , cols ] … Read more

Catch paste input

OK, just bumped into the same issue.. I went around the long way $(‘input’).on(‘paste’, function () { var element = this; setTimeout(function () { var text = $(element).val(); // do something with text }, 100); }); Just a small timeout till .val() func can get populated. E.