search for: sdat2

Displaying 2 results from an estimated 2 matches for "sdat2".

Did you mean: sda2
2010 Apr 19
2
selecting rows based on number that occurs after letter
...character but my rows have variable length and the y can occur in several different locations in the row name. Here is my current code sdat <- read.csv (paste(data.dir,"/summary.data.csv", sep="")) year <-c("1", "2", "3") for (y in year) { sdat2 <- sdat[sapply(strsplit(as.character(sdat$GCM), ""), function(zzz)zzz[5] == y),] Thanks Daisy Englert Duursma Bioclimatic Modeller Macquarie University Sydney, NSW, Australia
2012 Sep 05
4
Summarizing data containing data/time information (as factor)
Dear R user I want to create a table (as below) to summarize the attached data (Test.csv, which can be read into R by using 'read.csv(Test.csv, header=F)' ), to indicate the day that there are any data available, e.g.value=1 if there are any data available for that day, otherwise value=0. 28/04 29/04 30/04 01/05 02/05 532703 0 1 1