Somehow only recently did I realise that you can use if statements directly within R’s dplyr library filter function. This lets you create conditional filter criteria that can filter on different variables based on some other condition external to the function call. For instance you can change what you filter for by referencing another unrelated variable in your code. … Continue reading Writing conditional filter statements in dplyr
Month: July 2023
The risks of using generative AI when writing code
I've been nearly as fixated as much of the rest of the online world is with artificial intelligence over the last few months. Particularly the large language models (LLMs) out there, ChatGPT being the most famous example. Whilst the hype seems to be dying down a little - it's been a while since I've seen … Continue reading The risks of using generative AI when writing code