不等长数据帧列替换

时间:2015-07-15 17:11:19

标签: r

鉴于这两个不等大小的数据框架,我们希望将public static string ComputeSHA256HashOfAListOfStrings(List<string> parameters) { var concatted = string.Join(string.Empty, parameters); var byteOfConcattedString = Encoding.UTF8.GetBytes(concatted); return ComputeHashSha256(byteOfConcattedString); } dfx$v1进行比较,将dfy$p2替换为dfy$p2

dfx$v2

Out put应该是这样的:

dfx <- data.frame( v1 = c(1,2,3),
                   v2 = c("a1","a2","a3"))

dfy <- data.frame( p1 = c("c1","d1","e1","f1","g1","h1"),
                   p2 = sample(c(1:3)),
                   p3 = c("c3","d3","e3","f2","g2","h2"),
                   p4 = c("c4","d4","e4","f4","g3","h3") 
                   )

0 个答案:

没有答案