Including variables in expression call in R -


I was thinking that it is possible to include variables while using the expression in R.

For example, I would like to do something like this:

  for par (mfrow = c (2,3)) (i 1: 6) {plot ( X, p1 -i * p2, main = expression (Phi [1] - i * phi [2])}}  

but it does not work because it prints & Phi ; 1 - i & phi; 2 (i.e. it i with 1, 2, ... 6

Use the option:

  & gt; Option (Phi [1] - i * phi [2], list (i = i) fee [1] - 3 * fee [2]  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -