Rdocumentation
powered by
Learn R Programming
globe (version 1.2-0)
dot:
Description
Computes the dot product of two vectors.
Usage
dot(a, b)
Arguments
a,b
Two vectors of equal length.
Value
A vector of length 1.
Details
Vectors can be of any length provided they are equal.
See Also
cross
Examples
Run this code
dot(
c
(
2
,
1
),
c
(-
3
,
4
))
Run the code above in your browser using
DataLab