<<O>>  Difference Topic R (r1.13 - 29 Jan 2010 - ChrisJones)

META TOPICPARENT TechStuff
TOC: No TOC in "Home.R"
Line: 228 to 228

Again looks very good.

Added:
>
>

Data frames and Combinations

Create a list containing two columns with a count form 1 to 31

L<-list(A=c(1:31),B=c(1:31))

Create a data frame that contains all the combinations 1 to 31 G<-expand.grid(L)

Add a column, excel style:

G$fraction <- G$A/G$B

Filter by column:

G[G$fraction <= 1,]

Count the number of rows of a dataframe:

nrow (G[G$fraction <= 1,])

META FILEATTACHMENT multiplot.jpg attr="h" comment="Multi" date="1236370301" path="multiplot.jpg" size="34299" user="ChrisJones" version="1.1"
META FILEATTACHMENT multiplot1.jpg attr="h" comment="another" date="1236370740" path="multiplot1.jpg" size="49539" user="ChrisJones" version="1.1"
META FILEATTACHMENT multiplot4.jpg attr="h" comment="an" date="1236375152" path="multiplot4.jpg" size="66058" user="ChrisJones" version="1.1"
Revision r1.12 - 17 May 2009 - 09:28 - ChrisJones
Revision r1.13 - 29 Jan 2010 - 10:00 - ChrisJones