Hi all,

I'm a bit struggling with converting a vector of integers into dates. I've imported a dataset from Stata using:

```
> dataire <- read.dta13("~/lcapm_ireland.dta", convert.factors = TRUE,
generate.factors = FALSE, encoding = "UTF-8", fromEncoding = NULL,
convert.underscore = FALSE, missing.type = FALSE, convert.dates = TRUE,
replace.strl = TRUE, add.rownames = FALSE)
```

My date variable in Stata is a monthly time series starting on January 2000 formatted as "2000-Jan". However, Stata handles dates as integers, similarly to R. Therefore, when importing the dataset into R, I end up with a vector of dates of the form:

```
> c(478, 479, 480, ...)
```

In addition, my date variable is

```
> class(datem)
[1] "Date"
```

How can I use as.Date or other functions to transform the time-series of integers in a monthly date variable formatted as "%Y-%b" ?

Thank you for your help

S