29395/element-wise-multiplication-in-r
I have two vectors: numbers1 and numbers2 with integer elements in them. I want to calculate the element wise products of numbers1 and numbers2.
In R the simple vector multiplication gives you element wise multiplication
>a=c(1,2,3) >b=c(1,2,3) >a*b [1] 1 4 9
In addition If you want matrix multiplication it will go like...
>a%*%b [,1] [1,] 14
The function match works on vectors : x <- sample(1:10) x # ...READ MORE
Use list[index] = NULL The list value will ...READ MORE
Hi@akhtar, You can remove a value from a ...READ MORE
Dear Koushik, Hope you are doing great. The hadoop ...READ MORE
Basically here we are making an equation ...READ MORE
By assuming that all the values are ...READ MORE
For avoiding rowwise(), I prefer to use ...READ MORE
Basically all we have to do is ...READ MORE
R Programming gives a broad variety of ...READ MORE
Hey @Ali, as.factor is a wrapper for ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.