search for: datelist

Displaying 3 results from an estimated 3 matches for "datelist".

Did you mean: datalist
2011 Oct 20
1
stop R from rounding
...frame: x <- read.table('bats_1994_CTD.txt') colnames(x) <- c('Cruise','Dec.Year','Lat.N','Long.W','Press','Depth','Temp','Sal','Oxy') date <- subset(x,select=c(Dec.Year), (Depth<201) & (Depth>199)) datelist <- list(date$Dec.Year) temp <- subset(x,select=c(Temp), (Depth<201) & (Depth>199)) tempmean <- aggregate(temp,by=datelist,FUN=mean) tempframe <- data.frame(tempmean) #the first column of this dataframe is the one that I don't want R to round Thank you! -- View this messa...
2006 May 22
1
win2k memory problem with merge()'ing repeatedly (long email)
...ory required for all of these individual a1...a63 is only 1001384 bytes (doing an object.size() on a1..a63) at this point I've been trying to pin down this problem for two weeks and I just gave up... The following works fine as I'd expect with minimal memory usage... for (i in 3:67) { datelist <- as.Date(start.date)+0:(count-1) #remove a couple of elements... datelist <- datelist[-(floor(runif(nacount)*count))] a2 <- as.data.frame(datelist) names(a2) <- "mdate" vname <- paste("value", i, sep="") a2[vname] <- runif(le...
2008 Dec 18
3
Parsing unusual date format
Hello, If I have a character string like d <- c("1990m3", "1992m8") #March 1990 and Aug 1992 what is the easiest way to convert it into any standard date form; for example, d <- c("01/03/1990", "01/08/1992") I looked at as.Date but it doesn't seem to address my problem as I have an "m" stuck in the middle of my character string