[R] Problem with if statement

2009-12-08 Thread Arthur Burke
I am trying to use the value of an ID variable in an if statement and not getting the results I expected. # ID values for two school districts with(rf, tapply(DistrictID, DistrictName, min) ) Aberdeen School Dist. # 58 Buhl Joint School District

[R] Capturing lagged values?

2009-10-23 Thread Arthur Burke
Consider a data structure where header rows supply ID values (school and grade in the example below) that are not captured in subsequent rows df - read.table(textConnection( school grade studentid score 101 5 NA NA NA NA 123 21 NA NA 124 25 201 6 NA NA NA NA 231 33), header=TRUE)

[R] R Solves Shakespeare Authorship Question

2009-05-30 Thread Arthur Burke
Those of you who track applications of R may be interested in the following: The purpose of this paper is then to apply modern text analysis techniques using the R statistical packege [sic] to compare the works attributed to Shakespeare to those of leading alternate candidates such as Sir Frances

[R] Factor level with no cases shows up in a plot

2009-05-27 Thread Arthur Burke
Consider this data structure (df1) ... Group Year PctProf FullYr 1 Never RF 2004 87 88 2 Cohort 1 2004 83 84 3 Cohort 2 2004 84 86 4 Cohort 3 2004 87 87 5 Cohort 4 2004 73 74 6 Never RF 2005 85 86 7 Cohort 1 2005 81 82

[R] New York Times Article: Data Analysts Captivated by R's Power

2009-01-07 Thread Arthur Burke
Readers of this list might be interested in the following article in the New York Times and might find amusing the notion that Some people familiar with R describe it as a supercharged version of Microsoft's Excel spreadsheet software