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
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)
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
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
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
5 matches
Mail list logo