[R] Migrating .RData from Windows to Linux?
I want to begin a migration of R workspaces from Windows to Ubuntu Linux. (1) Can someone suggest the most appropriate path? dump() ? save() ? (2) Are there any R platform migration related resources out there? (I have not found any yet). Thank you, -- Derek N. Eder Gothenburg University VINKLA - Vigilance and Neurocognition laboratory __ R-help@stat.math.ethz.ch mailing list 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.
[R] Lattice / Trellis analog of axis(graphics) ?
My question is so basic that I am (almost too) embarrassed to admit that I could not find an answer after an hour's worth of homework. What is the Trellis / Lattice analog for the axis(graphics) function that enables the creation of axes in locations other than the default (i.e., bottom for X axis and right for Y axis) ? For example when plotting mileage against weight (in American units), one might want to also include a second X axis on the top margin (e.g., axis() pos = 3) with fuel mileage in metric units. xyplot(Mileage ˜ Weight, data = fuel.frame) Thank you, humbly yours, Derek Eder platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 4.0 year 2006 month 10 day 03 svn rev 39566 language R version.string R version 2.4.0 (2006-10-03) -- Derek N. Eder Gothenburg University VINKLA - Vigilance and Neurocognition laboratory SU/Sahlgrenska Utvecklingslab 1, Med Gröna stråket 8 SE 413 45 Göteborg (Gothenburg) Sverige (Sweden) +46 (031)* 342 8261 (28261 inom Sahlgrenska) +46 0704 915 714 (mobile) +46 (031) 25 97 07 (home) * omit the 0 when calling from outside Sweden __ R-help@stat.math.ethz.ch mailing list 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.
[R] POSIX and summer savings time redux
When I tried Professor Ripley's example (below), the tz argument failed to adjust clock time from UTC. (z - ISOdatetime(1970,1,1,0,0,0, tz=UTC)+1165398135729/1000) [1] 2006-12-06 09:42:15 UTC format(z, %Y-%m-%d %H:%M:%OS3,tz = CET) [1] 2006-12-06 09:42:15.729 # expected CET (Central European Time) clock time is UTC + 1 hour time zone adjustment Am I running into platform dependencies? (my platform) platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 4.0 year 2006 month 10 day03 svn rev39566 language R version.string R version 2.4.0 (2006-10-03) Thank you most sincerely, Derek Eder Prof Brian Ripley wrote: On Wed, 6 Dec 2006, Derek Eder wrote: I have a time stamp in UTC (GMT) time: format(ISOdatetime(1970,1,1,0,0,0)+1165398135729/1000,%Y-%m-%d %H:%M:%OS3) 2006-12-06 09:42:18.823 (note millisecond accuracy, but not relevant to question here) But it is the wrong answer, and not what my system gives. Now, this time stamp actually happened at local (Swedish) time one hour later (10:42). So you need to tell R that it was in UTC, which is what the 'tz' argument is for: (z - ISOdatetime(1970,1,1,0,0,0, tz=UTC)+1165398135729/1000) [1] 2006-12-06 09:42:15 UTC format(z, %Y-%m-%d %H:%M:%OS3, tz=CET) [1] 2006-12-06 10:42:15.729 Regarding summer/winter adjustments in time (spring forward, fall back): Is there a way of automatically recovering the local time adjustments for a given date? E.g., a date/time in springtime = GMT +2 , else GMT +1 Is the above not enough? You can unpick it if you want to get the shift. -- Derek N. Eder Gothenburg University VINKLA - Vigilance and Neurocognition laboratory SU/Sahlgrenska Utvecklingslab 1, Med Gröna stråket 8 SE 413 45 Göteborg (Gothenburg) Sverige (Sweden) +46 (031)* 342 8261 (28261 inom Sahlgrenska) +46 0704 915 714 (mobile) +46 (031) 25 97 07 (home) * omit the 0 when calling from outside Sweden __ R-help@stat.math.ethz.ch mailing list 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.
[R] POSIX and summer savings time
I have a time stamp in UTC (GMT) time: format(ISOdatetime(1970,1,1,0,0,0)+1165398135729/1000,%Y-%m-%d %H:%M:%OS3) 2006-12-06 09:42:18.823 (note millisecond accuracy, but not relevant to question here) Now, this time stamp actually happened at local (Swedish) time one hour later (10:42). Regarding summer/winter adjustments in time (spring forward, fall back): Is there a way of automatically recovering the local time adjustments for a given date? E.g., a date/time in springtime = GMT +2 , else GMT +1 Thanks, Derek Eder -- Derek N. Eder Gothenburg University VINKLA - Vigilance and Neurocognition laboratory SU/Sahlgrenska Utvecklingslab 1, Med Gröna stråket 8 SE 413 45 Göteborg (Gothenburg) Sverige (Sweden) +46 (031)* 342 8261 (28261 inom Sahlgrenska) +46 0704 915 714 (mobile) +46 (031) 25 97 07 (home) * omit the 0 when calling from outside Sweden __ R-help@stat.math.ethz.ch mailing list 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.
[R] Time conversion from Win32 64bit FILETIME?
Windows-32 has a time structure called FILETIME, a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC). That is not a typo, the year is 1601. Does anyone have a clue(or algorhithm)for how this is converted to something a little more POSIX-like ? Thank you, Derek -- Derek N. Eder Gothenburg University VINKLA - Vigilance and Neurocognition laboratory SU/Sahlgrenska Utvecklingslab 1, Med Gröna stråket 8 SE 413 45 Göteborg (Gothenburg) Sverige (Sweden) +46 (031)* 342 8261 (28261 inom Sahlgrenska) +46 0704 915 714 (mobile) +46 (031) 25 97 07 (home) * omit the 0 when calling from outside Sweden personal web page: www.derek-eder.org __ R-help@stat.math.ethz.ch mailing list 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.
[R] rendering date/times from 64bit julian format?
Hellos, I have date/times in 64-bit Julian format, that is the number of milliseconds since 1 jan 1970 (or something like that).E.g., 1159884877406 For the life of me I can't figure out how to render these in a more readable format, e.g., 2006-10-04 23:12:93.191 (and I have tried to do my best searching the archives and help etc ...) Thank you most sincerely, Derek Eder -- Derek N. Eder Gothenburg University VINKLA - Vigilance and Neurocognition laboratory __ R-help@stat.math.ethz.ch mailing list 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.
[R] R binaries for UMBUTU Linux?
Has anyone out there compiled R for the Umbutu Linux* (neé Debian) v. 5.04 distribution for Intel-type platforms (32 and 64 bit) ? Thank you, Derek Eder * Umbutu, a popular new Linux distribution, not a Nigerian scam, I promise!http://www.ubuntulinux.org/ -- Derek Eder SDS KLINIKEN Vasaplatsen 8 SE 411 34 Göteborg (Gothenburg) Sweden phone: +46 (31)* - 10 77 80 fax: +46 (31)* - 10 77 81 mobile: +46 (31)* 0709 721 283 * note: (031) within Sweden webpage: www.sdskliniken.se www.neuro.gu.se/sad __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] COX PH models for event histories?
This is a question about the use of the Cox proportional hazards model to analyze event histories. I am looking at the responses of sympathetic nervous system activity to a stimulus. The activity I observe is a burst that can only occur once per heart beat cycle (e.g., a binary count). Typically bursts occur in 60-80% of the heart cycles * sensory stimuli can modify these burst probabilities. I give 48 stimuli-trials at random intervals and count the number of bursts associated with the stimuli. For example, a person with 75% burst probability at rest (e.g., 36/48) may have an stimulation induced increase to 87.5% (42 bursts in 48 trials). There are 14 subjects in each of 3 different patient groups. Simple enough. But what if the stimulus reactions are modified over time? The surprise of the stimulus (electric shock) soon wears off and the responses (e.g., increased burst probability) diminish over the trials. Intuition tells me that the Cox proportional hazard model cast as in Anderson-Gill counting formulation is a useful tool too look for possible changes in burst occurrence probability across time (48 trials). Can one assume that non-uniform burst probabilities would manifest in the cox.zph tests of proportionality of hazards? I also plotted the Cox model along with a Cox model of a surrogate data set, formulated by randomizing the trial times (e.g., removing any temporal dependencies) Am I on the right track? Thank you Derek Eder Oh yes, the relevance of this question to R ... u. Yes, what is the assignment operator in R? (Just kidding). __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help