[R] [R-pkgs] r2rtf: Easily Create Production-Ready Rich Text Format (RTF) Table and Figure

2021-06-01 Thread Yilong Zhang
Dear all, I am happy to announce that {r2rtf} v0.3.0 is now on CRAN. r2rtf is an R package to create production-ready tables and figures in RTF format. The R package is designed to provide simple “verb” functions that correspond to each component of a table or figure. I hope you find it

[R] transfer string to expression

2010-10-31 Thread Yilong Zhang
Dear all: when I use parse() there is some problems. Below is an example: b0-1 b1-1 x-1 str2expr-function(x){eval(parse(text=x))} test1-b0+b1*sqrt(x) test2-b0+b1 str2expr(test1) str2expr(test2) it can work well for test2 but not for test1. Could you tell me how to fix this problem or is there

[R] Using RODBC to read CSV

2010-05-29 Thread Yilong Zhang
Hi all, When I use ODBC to manage my datasets, I have a question about sqlFetch below. It seems that my datasets have successfully been identified but the function sqlFetch get an error when I want to read the table. And below is the questionable code. Thanks for your help! library(RODBC)