I can do like SAS
put @ 5 value1 @ 12 "= "@ 24 estimate1; Is there anything that can work with R such as "cat" to print the position and object?
Let me know whether my question is clear to you or not.
Thanks in advance!
Here is an estimate that makes a long empty string and then puts value through substr :
fixput & lt; - Function (..., nchar = 80) {s = paste0 (rep ("", nchar), substr (s, args [arg], nchar) = as.character (as) = () = () For args = list (...) for arg (arg in arg (1, length args) args [arg + 1])}}} Usage: & gt; value1 = 1.234> estimate1 = P & gt; note: it gives a string, if you want it to output to a script just type it in cat Also note that what happens if the interpolated values are long: > value1 = pi> determination (5, value1, 12, "= ", 24, estimate 1) [1]" 3.14159 = 65358979 3.141592653 58979 "
No comments:
Post a Comment