I'm pretty new to LaTeX and R Markdown and am trying to recreate the following equation:
My issue is getting the second line to appear inside the curly brackets (apologies for the screenshot, I can't get the code to align properly):
You should use
\begin{equation*}
f(x) =
\begin{cases}
... & ... \\
... & ... }
\end{cases}
\end{equation*}
In general, there is a separate community for questions about LaTeX: TeX - LaTeX Stack Exchange