r/AskProgramming • • Sep 22 '26

Does the C programming language provide statistical and data analysis libraries comparable to those available in R programming language?

0 Upvotes

18 comments sorted by

View all comments

Show parent comment

2

u/leaflavaplanetmoss Sep 24 '26

For the love of god, don't try and use C for this purpose; that'd be incredibly masochistic. The main thing people code in C for nowadays is embedded systems, which isn't your use case.

For most data analytics and scripting tasks, I would normally suggest Python first, but R actually actually has a better ecosystem for biostatistics. However, if you're just doing basic biostatistics, probably Python (since it's well suited for scripting outside of data analytics), but if you get into more advanced bioinformatics, you're going to want to learn R as well, since it's literally designed for statistical computing, whereas Python is a general-purpose programming language.