I have two csv file, A and B.
I want to find the number of different column between A and B.
For example, let\'s assume that A contains 7, 9, 0, 0, 2 and B conta
You could try
indx <- colSums(A!=B)
which(!!indx) #gets the index of different columns
# Col2 Col3
# 2 3
which(!indx) #gets the index of similar columns
#Col1 Col4 Col5
# 1 4 5
length(which(!indx) )
#[1] 3
A <- data.frame(Col1= c(7,2), Col2= c(9,4), Col3= c(0,5),
Col4= c(0,3), Col5=c(2,3))
B <- data.frame(Col1= c(7,2), Col2= c(8,4), Col3= c(6,5),
Col4= c(0,3), Col5=c(2,3))