You want to use paste() inside text(), not cat().
Andy
From: Craig H. Ziegler [mailto:[EMAIL PROTECTED]
Dear All,
I am new to R and am trying to learn how to create functions
using R. Below is code which calculates Lin's Concordance
Coefficient. After I calculate the coefficient I
Try using paste() instead of cat() in
text(20,60,cat(Lin's Concordance Coefficient = ,lincc))
The last expression in your function will be returned as the value of
the function; that is the best way to get results out of a function
and available for use outside the function.