The concept of angles, sines, and cosines, etc are well established for $\mathbb{R}^n$ for $n\geq 2$ when talking about the usual geometric interpretation of angles between straight lines using what we refer to as the "dot product" between two vectors in $\mathbb{R}^n$. For a vector $u$ and a vector $v$ we have that $u\cdot v = \|u\|\|v\|\cos\theta$.
A specific example of dot product would be in the case of a 3-4-5 triangle. The long leg can be thought of as going 4 spaces to the right, and the hypotenuse can be thought of as going 4 spaces to the right and 3 spaces up. You have then that $[4,0]\cdot[4,3] = 4\cdot4 + 0\cdot 3 = 16$. Also $[4,0]\cdot[4,3] = \|[4,0]\|\|[4,3]\|\cos\theta = \sqrt{4^2 + 0^2}\cdot \sqrt{4^2 + 3^2}\cdot \cos\theta = 4\cdot 5\cos\theta$. Combining these pieces of information you have that $16 = 20 \cos\theta$ and that $\cos\theta = \frac{4}{5}$, agreeing with our definition of cosine of an angle as being adjacent over hypotenuse.
Through abuse of notation, or to simply keep the number of technical terms lower, we can also refer to "angles" and such from a purely algebraic point of view. Our dot product from before is a specific example of what we also call an "inner product" and a vector space which has an inner product we call an "inner product space."
Inner products are commonly denoted as $\langle ~~, ~~ \rangle$ and you have the well known Cauchy-Schwarz inequality that $(\langle u, v\rangle)^2 \leq\langle u,u\rangle\langle v,v\rangle = \|u\|^2\|v\|^2$. Specifically, we can say that $\langle u, v\rangle = \|u\|\|v\|\cos\theta$ where $\cos\theta$ is the number that happens to make that equality true. In other words, $\theta = \arccos(\frac{\langle u, v\rangle}{\|u\|\|v\|})$. It is through this definition of an angle, $\theta$, that we can talk about the "angle" between elements of our inner product space, whether they are vectors, numbers, functions, sequences, or whatever other abstract notion of numbers we are using at the time.
There are many wide varieties of inner product spaces and they can be of any dimension (including one-dimensional and infinite dimensional). Unfortunately, the inner product defined on one-dimensional Euclidean space is quite boring, and is precisely the normal multiplication that you are already familiar with (or some rescaling thereof) and the only possible angles are 0 if they are both positive or both negative, or $\pi$ (in radians) if one is positive and the other negative. This is because you can span the entire space with a single basis element. Things can become much more exciting when taking spaces in higher dimension and the theory behind all of this is highly important in hundreds of applications including signal processing, string theory, and probability theory.