Skip to content
Prev 398065 / 398502 Next

About size of data frames

"Sensor" is too generic to be helpful in offering guidance here.

1) A temperature sensor and a wind speed sensor are both sensors... but the code used to analyze them is usually quite different. It is not usually advantageous to stack different kinds of data (though sometimes you may want to facet different types of data into a trend plot from a single data frame, so ymmv). Sometimes even the same sensor applied in different environments (temperature in a house vs outside air temperature) needs to be kept in separate columns.

2) Some analyses assume a sequential-in-time structure... the long organization you are contemplating likely has repeating time sequences... you will end up looking at segments of the values column and it may be easier to do that in wide form. 

3) Other analyses are independent of time... e.g. temperature greater than 30degC... a single column containing only those sensors is ideal for that.
On August 14, 2025 11:55:34 AM PDT, Bert Gunter <bgunter.4567 at gmail.com> wrote: