The R list does not recognize .csv files so your attachment got stripped. It is
picky that way. Tacking .txt to the end might trick it into preserving the
attachment.
Dataset <- read.table()
created a data.frame called Dataset so the second command was redundant.
Probably better would be read.
Hello,
Another way of getting dates, of class 'Date', is to paste a day "01"
into what the op has.
To the op:
1) Your attachment didn't come through, R-Help doesn't accept the
extension .csv, use .txt
2) When you read your data in using function read.csv the result already
is a data.frame so
A couple thoughts:
1. converting factors into dates often requires that they be converted to
character first.
2. you don't really have dates; you have just months and years
3. therefore perhaps the as.yearmon() function in the zoo package could help
library(zoo)
my.factor <- factor("Feb 2017")
3 matches
Mail list logo