More months trouble [🇷 for BE/BA]

posted by ElMaestro  – Denmark, 2025-11-13 06:20 (202 d 16:55 ago) – Posting: # 24495
Views: 2,386

Hi Hötzi,
hi all,

❝ I don’t know what you want to achieve but (...)


Well, some degree of sanity is part of my general goals. But obviously, in that case I should not have gone into bioequivalence to start with.

Some days ago I received a csv file with dates like "03/Apr/2024" for ~5000 data points or so (cancer PD marker level, subjects, visits, timings, and a Brazilian other columns). There are repeats in the data and I need to extract the latest data for of such repeats as these will be the ones used for stats. So, I have to sort the data by subject and by date.
Since %b as Mittyri says uses a deep C call which queries the locale, there is no easy way of doing this.
The solution I see is to translate every month abbrev in the data to the corresponding month abbrev of my locale and only then can it be sorted. Same thing if I convert the month abbrev to integer. Both options are equally viable. Clumsy, but I will get there. :-)

I do not in any way have influence on the way the data file is generated or which date format the other party decide to use before sending it to me.

Pass or fail!
ElMaestro

Complete thread:

UA Flag
Activity
 Admin contact
23,653 posts in 4,991 threads, 1,571 registered users;
130 visitors (0 registered, 130 guests [including 34 identified bots]).
Forum time: 00:16 CEST (Europe/Vienna)

There are in fact two things, science and opinion;
the former begets knowledge, the latter ignorance.    Hippocrates

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5