Re: [R] Multiplying each row of data.frame by a row in another data.frame

2022-04-10 Thread maithili_shiva--- via R-help
: [R] Multiplying each row of data.frame by a row in another data.frame Does this produce the desired results? Also, even if this produces your desired results, I am not sure it is the "best" way to do this. There might be better ways. data.frame( t ( t(val_df) * (weights$value

[R] How to improve accuracy of output?

2022-05-24 Thread maithili_shiva--- via R-help
Dear Forum In my code, I am trying to compute Value at risk. I have an issue as mentioned below: I have defined  options(digits = 14) But my output is something like >  df$price [1] 98.7185273         103.10265923  However, if use Excel, I get values as 98.718527356108 103.1026592370