假设我有两个文件private String getServerTimeZoneDisplayName()
{
final TimeZone timeZone = TimeZone.getDefault();
final boolean daylight = timeZone.inDaylightTime(new Date());
final Locale locale = servletRequest.getLocale();
return timeZone.getDisplayName(daylight, TimeZone.LONG, locale);
}
和df1.csv
:
df2.csv
和
a b c
1 . . .
2 . . .
3 . . .
如何将 d e f
1 . . .
2 . . .
3 . . .
合并为以下输出?
.csv
答案 0 :(得分:1)
Akrun解决方案确实有效:
df1 <- structure(list(a = c(1L, 1L, 1L), b = c(2L, 2L, 2L), c = c(3L, 3L, 3L)),
.Names = c("a", "b", "c"), class = "data.frame", row.names = c(NA,-3L))
df2 <- structure(list(a = c(1L, 1L, 1L), b = c(2L, 2L, 2L), c = c(3L, 3L, 3L)),
.Names = c("d", "e", "f"), class = "data.frame", row.names = c(NA,-3L))
cbind(df1, df2)
a b c d e f
1 2 3 1 2 3
1 2 3 1 2 3
1 2 3 1 2 3