Re: [R] Formatting numerical output

2010-04-25 Thread Berend Hasselman
MARCEL CURLIN wrote: > > . > > Currently my output looks like: > [1] Excluded range: Time 00.2 > [4] R^2 =0.111526872884505 > [1] Excluded range: Time 0.2 0.4 > [4] R^2 =0.0706332920267

[R] Formatting numerical output

2010-04-24 Thread MARCEL CURLIN
Hello, I am new to R and am having difficulty formatting numerical output from a regression analysis. My code iteratively performs linear regression on a dataset while excluding certain data ranges. My code: rm(list = ls(all = TRUE)) sink("outfile") dat <- read.table("testdat", sep="\t", header