Re: [R] use gcheckbox in gWidgets to switch on/off gframe

2016-01-22 Thread Rolf Fankhauser
Hi Tonja Maybe I wasn't clear in my last post. This is the code: library(gWidgetstcltk) library(gWidgets) options(guiToolkit="tcltk") Population <- c("A","B","C","D","E","F") w = gwindow("") g1 = ggroup(horizontal = F, cont=w) g2 = ggroup(horizontal = T, cont=g1) glabel("Population:", cont=g2) S

Re: [R] Reading a tab delimted file of varying length using read.table

2016-01-17 Thread Rolf Fankhauser
Hello Pradeep I downloaded divorce.dat but I could not find tabs between the columns. You defined tab as separator, so your columns should be separated by tabs. Therefore read.table reads the whole first line and wants to save the result as numeric because you defined the first column as numeric

Re: [R] use gcheckbox in gWidgets to switch on/off gframe

2016-01-16 Thread Rolf Fankhauser
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Rolf Fankhauser Hege

[R] Aggregate records to 10min

2016-01-16 Thread Rolf Fankhauser
Hi I would like to aggregate a rainfall series with 1min records (timestamp and value of 0.1mm from a tipping bucket raingauge) to 10min values by summing up the values. # ptime is a POSIXlt datetime value with tz="GMT" t10min <- 600*floor(as.integer(as.POSIXct(data$ptime))/600) w10min <- ta

Re: [R] How to convert Datetime numbers from Excel to POSIXt objects

2007-12-14 Thread Rolf Fankhauser
Ok, I see, the difference comes from summer and winter time. Thanks for the hint! Stupid not to bear that in mind!! Peter Dalgaard wrote: >Rolf Fankhauser wrote: > > >>Hi all, >> >>I need to compare time series data files of different time formats. I >>had n

[R] How to convert Datetime numbers from Excel to POSIXt objects

2007-12-14 Thread Rolf Fankhauser
Hi all, I need to compare time series data files of different time formats. I had no problems with text format using strptime. But how can I convert datetime numbers from Excel (days since 30.12.1899 00:00:00) into POSIXt objects? For example 29770.375 should be converted to "03.07.1981 09:00:0