File: smartbind_Dates.R

package info (click to toggle)
gtools 3.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 748 kB
  • sloc: ansic: 190; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
library(gtools)

today <- Sys.Date()
tenweeks <- seq(today, length.out = 10, by = "1 week")

df1 <- data.frame(dates = tenweeks, chars = letters[1:10], ints = 1:10, numeric = 1.1:10.1)
df2 <- data.frame(chars = letters[11:20], ints = 11:20, numeric = 11.1:20.1)

smartbind(df1, df2)