Struggling with matrix creation in R? You're not alone! In my latest post, I break down the steps to create empty matrices and avoid common pitfalls.
Dive in at https://www.spsanderson.com/steveondata/posts/2025-01-09/ and let me know your experiences!
In today's article, I explore how to create empty matrices in R!
If you're looking to streamline your data analysis, this guide is for you.
Check it out at https://www.spsanderson.com/steveondata/posts/2025-01-09/ and share your thoughts!
Let's tackle those matrix challenges together!
A Legendary Sci-Fi Icon Returns in January 2025
Array Comics is proud to announce the upcoming release of Buck Rogers 2425, a new comic series that reimagines one of sci-fi's most influential space-faring heroes. With the first issue slated for release in January 2025, the series merges the spirit of...
https://comiccrusaders.com/comic-books/comic-book-previews/a-legendary-sci-fi-icon-returns-in-january-2025/
#buck rogers 2425 #sci-fi #80s #comics #comic books #retro #modern #array comics
I am still pissed off about this from last night.
The array[x][y]
syntax for indexing an array inside another array, which is standard in Lua, does not appear to besupported by Pico-8
I had to make a dummy variable for some
foo=array[x]
bar=foo[y]
nonsense.
Also, if I used for all i in array
, I could not use i
to actually index the array. But for i=1,#array do
worked fine even though it should be the exact same thing. And it's only as I write this that I realize that it was probably putting each value of the array into i
and not the index. But that's fine, there's no method to sort values and I needed to step through them in a specific order, so it's really easiest to just use the numerical index and manually ensure they stay sorted.
And none of this is for any gameplay logic, this is all just the nominally simple code for scrolling that fucking cloud.
I'm obsessed. 50% memory savings with PHP arrays have driven me crazy
For the past few weeks, my after-work research on PHP arrays has dominated my free time. The 'Never* use arrays' talk by @Crell at PHPKonf 2021 and a misinterpreted statement that you can save ~50% memory with PHP arrays have triggered intensive research on the topic.
[1/2]
#php #php_src #web_development #development #C #array #php_array
https://lukasrotermund.de/posts/php-array-object-benchmarking/
Fiber-Optic Seismic Sensing Of Vadose Zone Soil Moisture Dynamics
--
https://doi.org/10.1038/s41467-024-50690-6 <-- shared paper
--
[broadly, a 'seismic' listening technique could help researchers map water movement, moisture levels in soil, with these researchers at Caltech have figured out a way to use vibrations from passing cars to see how much water sits directly beneath the ground’s surface…]
#GIS #spatial #mapping #remotesensing #array #survey #soil #regolith #seismic #water #hydrology #waterresources #watersecurity #subsurface #vadose #vadosezone #soilmoisture #moisture #weather #precipitation #rainfall #surfacewater #groundwater #ecology #agriculture #ecosystems #spatiotemporal #model #modeling #spatialanalysis #fiberoptics #fibreoptics #evapotranspiration #insitu #climatechange #drought #extremeweather #watermanagement #semiarid #geophysics
Recently Completed Geophysical Survey Will Help Protect Critical Infrastructure From Geomagnetic Storms And Space Weather
--
https://www.usgs.gov/news/national-news-release/recently-completed-geophysical-survey-will-help-protect-critical <-- shared technical article
--
[my other ½ is a space weather scientist, until I knew her I was not fully aware of all the risks and associated hazards associated with space weather]
#GIS #spatial #mapping #spaceweather #power #telecom #critical #infrastructure #risk #hazard #geomagnetic #geomagneticstorm #geomagnetism #minerals #geothermal #mining #earth #electricpower #powergrid #impacts #conductivity #USMTArray #magnetotellurics #geology #rocks #geophysics #spatialanalysis #spatiotemporal #array #USA #hazardanalysis #powersystems #transformers #powerfailures #lossofpower #blackouts #overloads
@USGS @NSF @nasa @EarthScope @NOAA
Found on X, tried on my own. Weird and a reason to avoid JS.
JS Lenght not write only :)
Introducción práctica a Numpy (Python)
NumPy es una biblioteca de Python para el cálculo numérico eficiente.
Proporciona soporte para arrays multidimensionales/matrices, junto con una colección de funciones matemáticas de alto nivel para operar con estos arrays.
Realiza las operaciones de una manera muy eficiente y optimizada.
Además nos proporciona herramientas para integrar C/C++ y Fortran.
@drmorr @leobm @mhd The difference in #Perl between $#array as the last index of an array and @array in scalar context is exactly one. In other words:
```
scalar(@whatever) == $#whatever + 1;
```
So using $#whatever for the length of array @whatever *is* wrong unless you take that extra step of adding 1.
Fun fact: You can pre-extend an array @foo by assigning a value to $#foo.
Crazy fact: Earlier versions of Perl let you set $[ to a non-zero index value for the start of arrays.
@drmorr Objective-C: `[array count]` (bet where Swift got it from)
Smalltalk: `array size` (bet where Objective-C got the space from)
Dart: `array.length`
R: `length(array)` but sometimes `nrow(array)`
Bash: `${#array[@]}`
Pascal: `Length(array)`
Racket: `(length array)`
PowerShell: `array.Length` AND ALSO `array.Count`
Ruby: `array.length` AND ALSO `array.size`
Clojure: `(count array)`
Lua: `#array` (maybe)
Visual Basic: `UBound(array) - LBound(array) + 1` (haha)
C: haha screw you.
@drmorr
In Perl, the explicit scalar()
is usually not needed. Using an array in scalar context gives you the number of elements; scalar()
is just one way of forcing scalar context.
PHP doesn't have arrays.
The C++ code is wrong; C++ arrays don't have methods.
Haskell: numElements array
C, C++: sizeof array / sizeof array[0]
Common Lisp: (length array)
bash: ${#array[@]}
Pascal: Length(array)
PostgreSQL: array_length(array, 1)
I do love that buffer.subarray() returns a – checks notes – Buffer instance, not an array, in Node.js.
Warum beginnen Arrays mit dem Index Null?
Vielleicht habt ihr euch beim Programmieren schon einmal geärgert, dass Arrays mit dem Index Null beginnen, statt mit Eins. Im Artikel findet ihr die Antwort.
#Array #Null #Index #Programmierung #Liste #Linux
https://gnulinux.ch/warum-beginnen-arrays-mit-dem-index-null