Re: [R] R code output issues

2010-09-03 Thread Marcel Curlin
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) DR D.1 R.1 V1V2dif V1V4dif 1 68.92500 75.00

Re: [R] R code output issues

2010-09-03 Thread jim holtman
first of all if you are 'sourcing' the file, put explicit print calls on your data frame; e.g., print(dataframe). Just because your input is 2149 lines long does not mean you results will necessarily be that long. You are using 'tapply' which will be aggregating your data. You need to provide som

[R] R code output issues

2010-09-03 Thread Marcel Curlin
Hi all, I have a short R code file that I am using to perform calculations on a dataset. I am having a few issues with output: 1. Although my input data file is 2149 lines long, when I type "results.df" from the command line, I get the appropriate calculation results for only the first 46 rows.