[R] Parsing useragent in R

2013-10-08 Thread Aviad Klein
Hello, Has any1 ever tried to parse a useragent string to get the OS and Browser information out of it? There are many Java, PHP and Python ways to do it, but I was wondering if there is a way to do it with R. Googling retrieved no help at all. A useragent string might look like this : "mozilla/

[R] problem in plotting numeric x by POSIXt class with lattice

2011-02-19 Thread Aviad Klein
# hi all, # I'm trying to plot temperatures by date in a trellis plot by their stations # I'm plotting the following data.frame library(lattice) h <- structure(list(station_name = structure(c(3L, 4L, 2L, 10L, 11L, 12L, 6L, 7L, 5L, 8L, 9L, 3L, 4L, 2L, 10L, 11L, 12L, 6L, 7L, 5L, 8L, 9L, 3L, 4L, 2

[R] in object of class formula

2011-02-04 Thread Aviad Klein
# Hi all, # I've made a function to make a formula out of a data.frame without columns which contain a constant value. # The function "which.constant" returns the indices of colums with constant values: which.constant <- function(data.frame) { # counts the number of columns in a data.frame which