Zeitpunkt Nutzer Delta Tröts TNR Titel Version maxTL Fr 04.10.2024 00:00:00 190.333 -1 9.887.498 51,9 Mastodon 4.3.0... 500 Do 03.10.2024 00:00:03 190.334 -2 9.878.838 51,9 Mastodon 4.3.0... 500 Mi 02.10.2024 00:00:06 190.336 -2 9.870.374 51,9 Mastodon 4.3.0... 500 Di 01.10.2024 00:00:07 190.338 -3 9.863.625 51,8 Mastodon 4.3.0... 500 Mo 30.09.2024 00:00:08 190.341 -3 9.853.351 51,8 Mastodon 4.3.0... 500 So 29.09.2024 00:00:03 190.344 +1 9.843.604 51,7 Mastodon 4.3.0... 500 Sa 28.09.2024 00:00:03 190.343 -4 9.834.146 51,7 Mastodon 4.3.0... 500 Fr 27.09.2024 00:00:02 190.347 -2 9.824.358 51,6 Mastodon 4.3.0... 500 Do 26.09.2024 00:00:00 190.349 -4 9.813.984 51,6 Mastodon 4.3.0... 500 Mi 25.09.2024 00:00:00 190.353 0 9.804.415 51,5 Mastodon 4.3.0... 500
tomstafford (@tomstafford) · 10/2022 · Tröts: 2.238 · Folger: 1.575
Fr 04.10.2024 14:36
A cautionary tale on use of GenAI in learning to code:
A student from my Msc class just got this confusing advice from chatGPT
(hint: 6 *is* divisible by 3, so the example makes no sense)
Example 2: Incompatible lengths If the length of the shorter vector does not divide evenly into the length of the longer vector, R will still recycle the shorter vector but will throw a warning because something might be wrong with the logic of your code. R long_vec <- c(1, 2, 3, 4, 5, 6) short_vec <- c(10, 20, 30) result <- long_vec + short_vec # Warning message: longer object length is not a multiple of shorter object length print(result) # Output: 11, 22, 33, 14, 25, 36 In this case, short_vec is recycled, but since its length (3) is not a multiple of long_vec's length (6), R generates a warning. The warning alerts you that the operation may not behave as intended, which could result in logical errors depending on the context.
[Öffentlich] Antw.: 0 Wtrl.: 0 Fav.: 0 · via Web