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
splitting Chinese addresses?Dear All, Suppose that I have the following addresses (in Chinese), Code: * Example generated by -d…
Cross-level interactions vs. separated regressions for categories of the interaction variable in multilevel modelsDear all, I want to investigate which child in a sibling group takes over the care of a parent. The…
Concentration Index (industries within one sector per country)Hello, I have a set of industries within one sector and I would like to calculate the degree of con…
Using racial/ethnic demographics as the independent variables in multivariate linear regression?Hello! I am conducting multivariate linear regression using -regress- of Google trend interest (a 10…
Reshapes wide to long without wave identifierHi I have a follow-up tricky reshape that I would like some help with please. I would like to resha…
Subscribe to:
Post Comments (Atom)
0 Response to Convert time with a 12 hrs setting, to 24 hrs
Post a Comment