type test.txt, show.output.on.console=T)
--
View this message in context:
http://www.nabble.com/-R--help-with-function-%22system%22-and-MS-DOS-command-TYPE-tf3146629.html#a8727428
Sent from the R help mailing list archive at Nabble.com.
__
R-help
Try 'file.show'
On 1/30/07, Chen, Xiao [EMAIL PROTECTED] wrote:
Greetings -
I have a quick question that I hope someone will have a quick answer. I
have tried to use the R function system with the MS-DOS command type
to display the full content of a text file. But it always returns with a
On Wed, 31 Jan 2007, Vladimir Eremeev wrote:
Chen, Xiao wrote:
Greetings -
I have a quick question that I hope someone will have a quick answer. I
have tried to use the R function system with the MS-DOS command type
to display the full content of a text file. But it always returns with a
Dear R-Help,
Thanks much.
I have received very good advice from a couple of experts. R-help is
just wonderful!
I have combined all the solutions that I got and they are shown below:
zz-file(d:/work/test/test.txt, w)
cat(this is a test\n, file=zz)
close(zz)
setwd(d:/work/test)
shell(type
Greetings -
I have a quick question that I hope someone will have a quick answer. I
have tried to use the R function system with the MS-DOS command type
to display the full content of a text file. But it always returns with a
message saying the text file is not found. I could accomplish the same
Hello everyone,
I have a function here that I wrote but doesn't seem to work quite
right. Attached is the code. In the calib funcion under the for loop
Bt[i+2]-(1-m)*Bt[i+1]+Rt[i]*Rerr-Ct[i+1] returns NA's for everything
after years 1983 and 1984. However the code works when it reads
Take the case of i==1.
Ct[i]-1/Bq*Bt[i]*Cerr # Assign Ct[1]
using Bt[1]
Rt[i]-Bt[i]/(a+b*Bt[i]) # Assign
Rt[1] using Bt[1]
Bt[i+2]-(1-m)*Bt[i+1]+Rt[i] *Rerr-Ct[i+1] # Assign Bt[3] using
Bt[2] and Rt[1] and **Ct[2]**
You're
Hello everybody,
I've got a matrix called EUROPEDATA and I want to calculate the adf test
statistic (part of the tseries package) on a rolling basis for window my.win on
each column; i.e. each column of EUROPEDATA represents a particular variable;
for the first column I calculate the adf
Put your time series into a ts or zoo object. Now using
EuStockMarkets which is builtin data set in R. (You might
want to use align = right in rollapply.)
library(tseries)
library(zoo)
eu91 - window(EuStockMarkets, end = 1992) # use portion for test data
eu91.p.value - rollapply(eu91, 61,
Hi All,
I need a basic help from you. I've built a function like this,
windowlength-function(x)
{
z - rep(seq(0,331,by=x-1)+1, each=2)
zz - z[-c(1,length(z))]
ind - as.data.frame(matrix(zz, nr=2))
j-lapply(ind,
On Fri, 12 May 2006, SUMANTA BASAK wrote:
I need a basic help from you. I've built a function like this,
windowlength-function(x)
{
z - rep(seq(0,331,by=x-1)+1, each=2)
zz - z[-c(1,length(z))]
ind - as.data.frame(matrix(zz, nr=2))
j-lapply(ind, function(x) mat[x[1]:x[2],])
Use readline.
x - readline(Give the value of x? )
cat(The value of x is, x, \n)
Cheers,
Simon.
SUMANTA BASAK wrote:
Hi All,
I need a basic help from you. I've built a function like this,
windowlength-function(x)
{
z - rep(seq(0,331,by=x-1)+1, each=2)
zz -
12 matches
Mail list logo