To multiply two numbers in R, you can use the '*' operator.
In this example,
num1
and num2
.*
operator and store the result in a variable product
.product
.num1 <- 5
num2 <- 10
product <- num1 * num2
print(paste('Product of', num1, 'and', num2, 'is:', product))
Product of 5 and 10 is: 50
In this tutorial, we learned How to Multiply Two Numbers in R language with well detailed examples.