Skip to content
Prev 386085 / 398513 Next

Extracting data and saving in excel

Hello,

First coerce the column birth to class Date, then subset.


data$birth <- as.Date(data$birth)
i <- data$birth > as.Date("1979-01-01")
subdata <- data[i, ]


To write back to Excel, use write.csv or a package able to write Excel 
files directly.


Hope this helps,

Rui Barradas

?s 12:23 de 23/10/20, bgnumis bgnum escreveu: