BE-proff ● 2015-09-04 01:03 (3480 d 12:09 ago) Posting: # 15378 Views: 5,680 |
|
Dear All, R seems to be interesting for me so I try to learn to write R-codes ![]() I know there are a lot of different scripts in the internet but my question is. If I want to make a function which returns script result in format mean1 xx mean2 yy, where xx and yy are computed values; mean 1 and mean 2 are fixed expessions. How should a script be written? ![]() |
yjlee168 ★★★ ![]() ![]() Kaohsiung, Taiwan, 2015-09-04 09:55 (3480 d 03:18 ago) @ BE-proff Posting: # 15379 Views: 4,711 |
|
Dear BE-proff, I am not sure if this is what you want (a function)? BE.proff.mean<-function(){ or you can write the script this way: BE.proff.mean<-function(xx,yy){ — All the best, -- Yung-jin Lee bear v2.9.2:- created by Hsin-ya Lee & Yung-jin Lee Kaohsiung, Taiwan https://www.pkpd168.com/bear Download link (updated) -> here |
BE-proff ● 2015-09-04 12:28 (3480 d 00:45 ago) @ yjlee168 Posting: # 15380 Views: 4,668 |
|
Dear yjlee168, Thank you very much - both codes work as I wish ![]() |