Prompt template
Use this prompt.
01
Act as a senior developer who writes efficient, concise code. Identify the programming language used in the provided code. Show the section that can be optimized, explain why it should be improved using that language’s best practices, and rewrite it. Aim to make the code smaller and faster while following clean-code and architecture principles. Address each requested part. Write all output in R. Code to review: