[R] R code output issues

Marcel Curlin cemarcel at u.washington.edu
Sat Sep 4 05:17:47 CEST 2010


Thanks for the input

Adding "print" took care of the first problem. The output looks like what I
would expect, so I think the code is doing what I would like it to for the
first 44 observations. 

> print(results.df)
          D        R      D.1      R.1     V1V2dif     V1V4dif
1  68.92500 75.00000 284.5250 296.0000   6.0750000  11.4750000
2  68.81081 67.00000 287.7568 283.0000  -1.8108108  -4.7567568
3  65.43902 62.00000 282.5366 279.0000  -3.4390244  -3.5365854
4  66.60000 67.25000 286.7000 288.2500   0.6500000   1.5500000
5  68.94872 71.00000 297.8462 305.0000   2.0512821   7.1538462
Etc..

When I use str(results.df) it does seem to indicate a short file of 44
observations.  

'data.frame':    44 obs. of  6 variables:
 $ D      : num  68.9 68.8 65.4 66.6 68.9 ...
 $ R      : num  75 67 62 67.2 71 ...
 $ D.1    : num  285 288 283 287 298 ...
 $ R.1    : num  296 283 279 288 305 ...
 $ V1V2dif: num  6.08 -1.81 -3.44 0.65 2.05 ...
 $ V1V4dif: num  11.48 -4.76 -3.54 1.55 7.15 ...

So I am still left with that question..
-- 
View this message in context: http://r.789695.n4.nabble.com/R-code-output-issues-tp2526415p2526469.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list