Re: [R] How to filter datetime from a dataframe

2012-07-25 Thread Anders Ellern Bilgrau
Hi, Check out ?as.Date which is the key function for what you want. Objects of the class "Date" can be compared using logical operators. Try running the following code. As you didn't provide any data to illustrate your problem I've created some mockup data. data <- data.frame(cbind(date = c("

Re: [R] How to increase lenght of axis according input data?

2012-08-01 Thread Anders Ellern Bilgrau
Hello, Here's a quick and dirty solution. By setting axes = FALSE in the barplot plot arguments we suppress the axes. You then use the axis function afterward to draw the desired axis. Below, i have also used the pretty function. Have a look at this: data <- rbind(c(3,4,6), c(5,15,19)) pdf("i