3
I have in my data table a column of birthdates that are in the English model, but I don’t know how to analyze it descriptively nor what resources to use of the R.
Should I use a bar chart or histogram? How would I make R understand that they are dates? I tried to risk doing that:
x = as.Date(rehab.1$Data.Nascimento)
hist(x, main = "Data de Nascimento", breaks = "years",axes = TRUE, xlab = "data", ylab = "Frequência Absoluta", col = "green")
But what came out wasn’t cool:
What kind of data
rehab.1$Data.Nascimento
? You can show an example of these values (i.e.,head(rehab.1$Data.Nascimento)
?)– carlosfigueira
head(Rehab.1$Birth date) [1] 1/10/1953 6/1/1941 4/11/1941 5/2/1946 6/18/1938 7/12/1941 376 Levels: 1/1/1924 1/10/1953 1/11/1924 1/11/1950 1/15/1923 1/16/1936 ... 9/8/1941
– Cloves Paiva