search for: date_p

Displaying 4 results from an estimated 4 matches for "date_p".

Did you mean: date_r
2009 Jul 25
1
yaxp problem for more irregular time series in one plot
...t more time series in one plot. As there are bigger differences in values of variables I need logaritmic y axis. The code I use is the following: nvz_3_data <- read.csv('/home/tomas/R_outputs/nvz_3.csv') date <- (nvz_3_data$date) NO3 <- (nvz_3_data$NO3) NH4 <- (nvz_3_data$NH4) date_p <- as.POSIXct(date, "CET") par(mfrow=c(2,1), ylog = TRUE, yaxp = c(0.01, 100, 3)) plot(date_p, NO3, log = "y", type = "l", col = "darkred", main = "NVZ-1", xlab = "time", ylab = "NO3-" ) lines(date_p, NH4, col = "darkblue...
2009 Sep 13
2
zoo plot: yearly marks on X-Axis
...query_duj_kal <- dbSendQuery(conn, "select zdroj as well, cas as date, fe2, fe3, mn, nh4, no2, no3, o2, teplota as temperature from analystats where zdroj like 'Dunaj Kalinkovo' order by date") watchem_duj_kal <- dbGetResult(query_duj_kal) date <- (watchem_duj_kal$date) date_p <- strptime(date, "%m-%d-%Y") no3 <- (watchem_duj_kal$no3) nh4 <- (watchem_duj_kal$nh4) par(mfrow=c(3,1), ylog = TRUE, yaxp = c(0.01, 100, 3)) maxy <- 100 miny <- 0.005 plot(date_p, no3,log = "y", type = "l", ylim = c(miny, maxy), col = "darkred&q...
2009 Sep 11
1
format (?) problems with data imported from postgres
...l <- dbGetResult(query_duj_kal) My intention with the data is to create a time series by a following script: date <- (watchem_duj_kal$date) NO3 <- (watchem_duj_kal$no3) NH4 <- (watchem_duj_kal$nh4) maxy<-max(NO3,NH4) miny<-min(NO3[NO3>0],NH4[NH4>0]) date_p <- as.POSIXct(date, "CET") par(mfrow=c(2,1), ylog = TRUE, yaxp = c(0.01, 100, 3)) plot(date_p, NO3,log = "y", type = "l", col = "darkred", main = "NVZ-1", xlab = "time", ylab = "NO3-" ) lines(date_p, NH4, col = "darkblue...
2012 Dec 17
0
User defined functions error - where is it ?
...w]], "month") at #15 2: trend.generator(x, "STATE", vec.states[i, 1], y) at #4 1: states.trends(per.after.sub, "CUST_SINCE") I use several tables: 1) full1, which contains data from 2009 to 2012 2) per2012.sub, which is a subset of full1 based on the criterion: { date_per = '2012-01-01' date_per = as.POSIXct(date_per,tz='', "%Y-%m-%d") per2012.sub = subset(full1, CUST_SINCE >= date_per) } 3) per.after.sub, which is a subset of full1 based on the criterion: { date_per1 = '2012-08-01' date_per1 = as.P...