Dear all,
I have to convert a variable setting in "12 hours" to "24 hours". I divided the variable into v2= "time" and v3="AM/PM", and then added 12hours if v3 == "PM", but this creates a problem for the 12PM, that are converted to midnight.
The code:
Array
The output:
Array
I'd be grateful for any advice, thank you in advance,
Aurora
Related Posts with Convert time with a 12 hrs setting, to 24 hrs
Panel regression - subgroup analysisHello dear community, I am currently analyzing a dataset to find out whether treatment effects diffe…
Principal component analysisHi, I am using panel data for my study. I want to use principal component analysis (PCA). As a read …
[DUVIDA] Separar valores de uma variávelOlá pessoal, preciso extrair para uma nova coluna os dois primeiros dígitos de uma variável. Por exe…
Error reshape wide to long: "variable 0_welsh implied name too long"Hello, I used the following command to reshape data from wide to long (example of the data below). …
Has anyone benchmarked the performance of the new -stintcox- "Interval censored Cox proportional hazards model" command?I've been testing out the new stintcox command which fits an Interval-censored Cox model on survival…
Subscribe to:
Post Comments (Atom)
0 Response to Convert time with a 12 hrs setting, to 24 hrs
Post a Comment