cbind(a,c(5,7)) [,1] [,2] [,3] [,4][1,] 1 3 5 5[2,] 2 4 6 7 使用rbind()和cbind()函數(shù)要求等長(zhǎng),意思就是如果按列合并,數(shù)據(jù)的長(zhǎng)度是列數(shù)的正整數(shù)倍數(shù)。 二、merge()函數(shù) merge()函數(shù)具有cbind()函數(shù)與rbind()函數(shù)的功能,而且可以根據(jù)相同的行名和列名合并數(shù)據(jù)。 1 2 3 4 5 ...
www.dbjr.com.cn/article/2548...htm 2025-5-14