1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| now_t <- Sys.time () ref_t_counts <- t(ref_counts) #超级慢,15分钟,似乎没有其他解决方案 Sys.time () - now_t
now_t <- Sys.time () ref2_t_counts <- t(ref2_counts) #超级慢,10分钟,似乎没有其他解决方案 Sys.time () - now_t
ref_d_counts <- data.frame(ref_t_counts[-1,], stringsAsFactors = F) ref2_d_counts <- data.frame(ref2_t_counts[-1,], stringsAsFactors = F)
colnames(ref_d_counts) <- ref_t_counts[1,] colnames(ref2_d_counts) <- ref2_t_counts[1,]
ref_d_counts <- as.data.frame(lapply(ref_d_counts, as.integer)) ref2_d_counts <- as.data.frame(lapply(ref2_d_counts, as.integer))
|