Why do people discourage using for loops and what is the best alternative?

This page summarizes the projects mentioned and recommended in the original post on /r/rprogramming

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • r-source

    Read-only mirror of R source code from https://svn.r-project.org/R/, updated hourly. See the build instructions on the wiki page.

  • I wouldn't say that for loops are outdated, per se. As others have noted, vectorized functions in R are typically much faster than writing a standard for loop, but it's important to note that these functions are at their core for loops written in a compiled language like C. For example, the function lapply() used to apply a function to each element of a list in R is actually a wrapper for a function with a loop written in C. But don't take my word for it! Check out some of the underlying source code written in C for the apply() family of functions here.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Quick tip: Using R, Rayshader and SingleStore Notebooks

    1 project | dev.to | 1 May 2024
  • How to generate a great website and reference manual for your R package

    1 project | dev.to | 10 Apr 2024
  • Array Languages: R vs. APL

    1 project | news.ycombinator.com | 21 Mar 2024
  • Data.table: R's data.table package extends data.frame

    1 project | news.ycombinator.com | 15 Mar 2024
  • Database-Like Ops Benchmark

    1 project | news.ycombinator.com | 9 Mar 2024