Skip to content
Prev 359830 / 398503 Next

as.Date gives NAs when transforming from factor

Don't give a factor to as.Date. Convert it to character first, or avoid letting it become a factor in the first place by using the stringsAsFactors =FALSE option to the read.table function or its related functions.