s*****n 发帖数: 2174 | 1 你说的这个是有道理的, 我一般都是使用"\r"作为分隔符. 对于绝对大多数的情况, 足
够用了, 而且程序可读性比较强. 当然如果遇上key里面有"\r"的情况, 还是会有问题.
解决的办法不是没有, 不过程序可读性差, 比较晦涩难懂. 比如这样
matA <- data.frame(
key1 = I(c("ab", "ac", "ad")),
key2 = I(c("bb", "bc", "bd")),
var1 = I(c(1,2,3)))
matB <- data.frame(
key1 = I(c("qa", "ab", "ac", "zd")),
key2 = I(c("qb", "bb", "cc", "bd")),
var2 = I(c(1,3,2,3)))
InA.But.NotInB <- function(A, B, by = intersect(names(A), names(B))){
matA <- A[, by, drop = F]
matB <- B[, by, drop = F]
rowAInB <- functio |
|
c**i 发帖数: 6973 | 3 The first clause in your posting is "我一直是设备制造商市场部门的,"
indicating you are in sales/marketing.
Upon reading your posting, I was surprised Huawei sells anything in US at
all. Cf
choi, Huawei Barred in Taiwan. Hardware board, July 6, 2011.
http://www.mitbbs.com/article0/Hardware/31558267_0.html
It turns out that, much like in Taiwan where the Ma administration put in
place an invisible bar on telecom equipments, US still allows Huawei sells
cell phones, tablets, etc. See
Elizabeth Woyke, Huawei Pla... 阅读全帖 |
|