I know it is a basic quaestion but couldnt find any solution to it. I want to multiply all columns of a dataframe by single column.
df1<-data.frame(F1=c(1
The overkill dplyr solution
library(dplyr) df1 %>% mutate_all(.,function(col){C$C*col})