[R] summary.formula()

2015-03-04 Thread Hua Liang
I try to use t.test instead of Wilcox.test in summary.formula() , a very decent function developed by Frank, as follows. But I got error messages. Can someone help me out? Dick uT<-function(a,b){ j<-t.test(a) p<-list(P=j$p.value,stat=j$statistic, df=j$parameter,

Re: [R] Load datasets

2012-03-29 Thread Hua Liang
3] >>>> ineed <- data(arg, package="MASS") >>> >>> get(data(list = arg)) >> >> I think the get() is superfluous: >> >>> rm(phones) >>> exists("phones") >> [1] FALSE >>> data(list=arg, package=

[R] Load datasets

2012-03-29 Thread Hua Liang
I am trying to use datasets within R with a loaded package, for example, MASS. When I use the dataset phones, it can be done using data(phones, package=”MASS”). I am thinking about an alternative but more flexible way to load this dataset. Because phones is the 70th dataset in this package, I