Re: [R] any similiar R fuction for matlab function 'fprintf'?

2011-02-03 Thread Zunqiu Chen
Thanks a lot! It really helps. Zunqiu From: Jude Ryan [mailto:jr...@marketshare.com] Sent: Thursday, February 03, 2011 3:28 PM To: Zunqiu Chen Cc: R-help@r-project.org Subject: Re: [R] any similiar R fuction for matlab function 'fprintf'? There does not seem to be a function exactly

[R] any similiar R fuction for matlab function 'fprintf'?

2011-01-28 Thread Zunqiu Chen
Dear All, Currently, I am translating Matlab code to R. I met difficulties to translate such Matlab codes into R: fprintf(fid,(' SPLITTING RESULTS ')); fprintf(fid,(' \n')); fprintf(fid,' Data base to analyze is a matrix %4i x %2i ',[n m]); fprintf(fid,' \n'); fprintf(fid,' h is %2i',h); fprintf(

[R] how to get coefficient and scores of Principal component analysis in R?

2011-01-28 Thread Zunqiu Chen
Dear All, It might be a simple question. But I could not find the answer from function “prcomp” or “princomp”. Does anyone know what are the codes to get coefficient and scores of Principal component analysis in R? Your reply will be appreciated! Best Zunqiu [[alternative HTML