File: smartbind_Dates.R

package info (click to toggle)
gtools 3.4.1-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 384 kB
  • ctags: 5
  • sloc: asm: 127; ansic: 69; makefile: 1
file content (9 lines) | stat: -rw-r--r-- 265 bytes parent folder | download | duplicates (4)
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)