My dataframe looks like this:
dput(head(sAUR,50))
structure(list(date = structure(c(1475315922, 1475660422, 1475920222,
1476179992, 1476524422, 1476784232, 1477044062, 1477388482, 1477648302,
1477911722, 1478256142, 1478515962, 1478775782, 1479120192, 1479380002,
1479639822, 1479984232, 1480244042, 1480503862, 1480848262, 1481108072,
1481367882, 1481712272, 1481972082, 1482231892, 1482576282, 1482836082,
1483095882, 1483440272, 1484304241, 1484564041, 1484823831, 1485428001,
1485687791, 1486032161, 1486291941, 1486551731, 1486896101, 1487155881,
1487415671, 1487760031, 1488019821, 1488279601, 1488624021, 1488883821,
1489143521, 1489488011, 1489747821, 1490007451, 1490352021), class = c("POSIXct",
"POSIXt"), tzone = ""), layer = c("AUR", "AUR", "AUR", "AUR",
"AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR",
"AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR",
"AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR",
"AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR",
"AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR", "AUR",
"AUR")), row.names = c(NA, 50L), class = "data.frame")
I want to copy the rows from 2017-02-18 11:01:11 (1487415671) until 2017-03-20 10:57:31 (1490007451) and paste them to the top of the dataframe while keeping the original data, in other words, I want to add this chunk of rows on top of the original dataframe.
(if there's a solution using the index I would consider it as well)
Any help will be much appreciated.