search for: twodata

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

Did you mean: rodata
2007 Oct 12
1
Addition operation based on specific columns and rows of two data frames
#Hello, # I have a question about the addition of values in specific columns and rows of a Data frame. # Below I have created two data frames, X.df and "Y.df". ## creation of X.df data frame X<- matrix(0,16,3) X.df<-data.frame(X) X.df[,1] <- c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4) X.df[,2] <- c(1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4) names(X.df)[1]<-"L(A)a(i)"