Re: [R] How to import an excel data file

2023-09-24 Thread Rainer Hurling
R package readxl I have also had very good experiences reading and writing Excel files with the package openxlsx ;) HTH, Rainer Hurling __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-

Re: [R] is.na(strptime (...)) return TRUE on FreeBSD

2023-05-11 Thread Rainer Hurling
Am 11.05.23 um 16:15 schrieb Jinsong Zhao: Hi there, The following codes may cause the problem in R 4.3.0 on FreeBSD in my last post: Error in as.POSIXlt.character(x, tz, ...) > (d <- strptime("1970-01-01 12:00:00 UTC", "%Y-%m-%d %H:%M:%OS", tz = "")) [1] "1970-01-01 12:00:00 CST" > is.na

Re: [R] A humble request

2022-07-02 Thread Rainer Hurling
Hi Muhammad, Am 02.07.22 um 18:11 schrieb Muhammad Zubair Chishti: Dear Experts, I cannot find a package "wmtsa" for my R version "R 4.2.0". Kindly help me to find it or share the link with me. Although I tried the old version of "wmtsa" but failed. Thank you for your precious time. Regards Muh

Re: [R] Date format

2020-05-12 Thread Rainer Hurling
Hi Medic, Am 10.05.20 um 09:15 schrieb Medic: I took a SAMPLE CODE (for Connected scatterplot) from the R gallery and applied to MY DATA, but got: "Don't know how to automatically pick scale for object ..." P.S. 1) R ver. 4.0 (Yes, Jeff); 2) Attached: mydata_dput (1 КБ) SAMPLE CODE library(ggp

Re: [R] Date format

2020-05-09 Thread Rainer Hurling
Am 10.05.20 um 04:17 schrieb Bert Gunter: > $date is a factor, which is coded as numeric values internally, which > as.date sees as numeric, and therefore: > "as.Date will accept numeric data (the number of days since an epoch), > but only if origin is supplied." (from ?as.Date) as.Date is also ab

Re: [R] Help with knitr pkg

2018-07-19 Thread Rainer Hurling
0.00 2: [31-40] 0.00 3: [31-40] 0.00 4: [31-40] 0.00 5: [31-40] 0.00 6: [61-70]296.25 Maybe I am in over my head in this pursuit given my novice status with R, however, any direction would be appreciated. Thank you. WHP Confid

Re: [R] Add annotation text outside of an xyplot (lattice package)

2016-09-23 Thread Rainer Hurling
Hi, one possible solution is to use ltext(). ltext(xcoord, ycoord, label="TEST", adj=c(0.5,0.5)) You have to know or to find out best fitting coordinates. Via adj you can control, if the text should adjust left, center or right to the coords, and above, center or bottom of them. H

Re: [R] read.xlsx function crashing R Studio

2016-08-29 Thread Rainer Hurling
;) library(xlsx) # if you like to use ISO dates options(xlsx.date.format="-mm-dd") # ATTENTION: Loading of package xlsx changes decimal point # to comma in a German locale Sys.setlocale(category = "LC_NUMERIC", locale="C") # UGLY HACK !!! # Later in your code

Re: [R] Build command in library(devtools)

2016-07-24 Thread Rainer Hurling
I think, in your case the problem might be the version of Rtools. If you want to use R > 3.0.x, you also have to use newer versions of Rtools [1]. HTH, Rainer Hurling [1] https://cran.r-project.org/bin/windows/Rtools/ Am 21.07.16 um 02:24 schrieb Steven Yen: > Here is what I found. I

Re: [R] exporting tables from an access database using parallel foreach

2015-11-21 Thread Rainer Hurling
Am 22.11.15 um 02:38 schrieb John McKown: > On Sat, Nov 21, 2015 at 11:55 AM, Vivek Sutradhara > wrote: > >> Hi John and Jeff, >> Thanks a lot for your help. I agree that row numbers are not a standard >> feature in SQL. What I am looking for is some kind of a hack. After all, >> the sqlFetch com

Re: [R] JAGS 4.x, rjags 4.x problems | Linux -- solved

2015-11-05 Thread Rainer Hurling
Am 05.11.2015 um 15:44 schrieb Evan Cooch: > Well, sort of. I got sufficiently frustrated that I completely > uninstalled R, jags, and everything related. Did a re-install using only > versions of R nd JAGS found in the epel repo. No muss, no muss -- all > works. > > Out of curiosity, uninstalled

Re: [R] JAGS 4.x, rjags 4.x problems | Linux

2015-11-05 Thread Rainer Hurling
Am 04.11.2015 um 21:36 schrieb Evan Cooch: On 11/4/2015 2:08 PM, Evan Cooch wrote: Greetings -- This has also been posted on the jags forum, but since I suspect the problem is more 'R-related' than jags, will aos post here. Decided to 'upgrade' from jags 3.x.x to 4.x.x today, on my GNU/Linux

Re: [R] JAGS 4.x, rjags 4.x problems | Linux

2015-11-04 Thread Rainer Hurling
Am 04.11.2015 um 20:08 schrieb Evan Cooch: > Greetings -- > > This has also been posted on the jags forum, but since I suspect the > problem is more 'R-related' than jags, will aos post here. > > Decided to 'upgrade' from jags 3.x.x to 4.x.x today, on my GNU/Linux > boxes (which run latest RHEL).

Re: [R] Rmarkdown / knitr naming the output file

2015-07-12 Thread Rainer Hurling
o > name the pdf differently than "bb.pdf", for example, "doc1.pdf". Is there > any way to do this? Here is another way of changing the output filename. I am using it from R's commandline: rmarkdown::render( input="filename_orig.R", output_format="pdf

Re: [R] library(xlsx) fails with an error: Error: package ‘rJava’ could not be loaded

2015-04-20 Thread Rainer Hurling
> LoadLibrary failure: The specified module could not be found. > > > Error: package ‘rJava’ could not be loaded There are several possibilities, why your rJava does not find rJava.dll. A good start give [1] to [3]. Did you have the right installation of JAVA itself? I think, in yo

Re: [R] XLSX package + Excel creation question

2013-08-29 Thread Rainer Hurling
- > - Scientific Employee, TUM - > - > > > On Thu, Aug 29, 2013 at 2:55 PM, Rainer Hurling wrote: > >> Am 29.08.2013 12:08 (UTC+1) schrieb Zsurzsa Laszlo: >

Re: [R] XLSX package + Excel creation question

2013-08-29 Thread Rainer Hurling
Am 29.08.2013 12:08 (UTC+1) schrieb Zsurzsa Laszlo: > Dear R users, > > I have a question about the xlsx package. It's possible to create excel > files and color cells and etc. yes, with package xlsx you can colourize you data sheets, even the fonts. See for example ?CellStyle . A good demonstra

Re: [R] latin1 encoding in WriteXLS

2013-08-18 Thread Rainer Hurling
.Dir), " --verbose ", verbose, " --AdjWidth ", AdjWidth, " --AutoFilter ", AutoFilter, " --BoldHeaderRow ", BoldHeaderRow, " --FreezeRow ", FreezeRow, " --FreezeCol ", FreezeCol, " --Encoding ", Encoding, " "

Re: [R] latin1 encoding in WriteXLS

2013-08-16 Thread Rainer Hurling
Am 13.08.2013 19:40, schrieb Hugo Varet: > Dear R users, > > I've just updated the WriteXLS package (on R 3.0.1) and I now have an error > when exporting a data.frame with the argument Encoding="latin1". For > example, these two lines work: >library(WriteXLS) >WriteXLS("iris", "iris.xls")

Re: [R] Is there a neat R trick for this?

2013-02-12 Thread Rainer Hurling
Am 12.02.2013 11:09 (UTC+1) schrieb Robert Latest: > x <- c(4,5,6) > y <- c(10,1,5,12,4,13,14) Please try #match(x,y) [1] 5 3 NA HTH, Rainer Hurling __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PL

Re: [R] FreeBSD installation problems

2012-10-20 Thread Rainer Hurling
On 21.10.2012 02:47 (UTC+2), J. Maxwell wrote: > R Compiliing or installation failure on FreeBSD > 9.0-RELEASE FreeBSD ; I386 box. > > configuring with the default settings, no 'options' => > > ./configure Is there any reason that you are not using the FreeBSD ports system, in this case /usr/por

Re: [R] How to read XML in UTF-8 format?

2012-10-15 Thread Rainer Hurling
On 15.10.2012 14:49 (UTC+2), Manish Gupta wrote: > How to read xml in UTF-8 format. I have one XML file but i want to read it > in UTF-8 format. How this is possible? > > > > 表 > 3 > 2.9 > > >

[R] XML_3.95-0.1.tar.gz does not build on FreeBSD

2012-10-13 Thread Rainer Hurling
e let me know, if you need more information or if I can do some testing. Thanks in advance, Rainer Hurling * installing to library '/usr/local/lib/R/library' * installing *source* package 'XML' ... ** Paket 'XML' erfolgreich entpackt und MD5 Summen �berpr�ft checking

Re: [R] R 2.15.0 and 2.14.2 crash on the same code that runs on 2.14.1

2012-06-03 Thread Rainer Hurling
One more thing you could try is to rebuild your packages under 2.15.0. One often forgets to update them after a version change of R: update.packages(checkBuilt=TRUE, dependencies=TRUE, ask='graphics') Rainer Hurling -Peter D. It seems that the results that comes out of 2.15.0

Re: [R] library(forecast): Error in SD.test(x, m) : Insufficient data

2012-02-08 Thread Rainer Hurling
8 febbraio 2012 17:10, Rainer Hurling ha scritto: On 08.02.2012 15:35 (UTC+1), Jean Jacques Dureau wrote: I have these R code: ### time.test.data<-c(2.88645418326693, 2.91546949823027, 2.94130799329234, 2.9

Re: [R] library(forecast): Error in SD.test(x, m) : Insufficient data

2012-02-08 Thread Rainer Hurling
On 08.02.2012 15:35 (UTC+1), Jean Jacques Dureau wrote: I have these R code: ### time.test.data<-c(2.88645418326693, 2.91546949823027, 2.94130799329234, 2.93313338038109, 2.89478957915832, 2.86029757243540, 2.786484866646

Re: [R] lattice panels with grouped extra data as text?

2012-01-27 Thread Rainer Hurling
On 26.01.2012 17:33 (UTC+1), Rainer Hurling wrote: I have a problem with including extra data in a lattice graphic. I am trying to put some calculated values in an extra column of a boxplot. A minimal example should show what I am trying to do: foo <- data.frame( Treatment=rnorm(1:1

[R] lattice panels with grouped extra data as text?

2012-01-26 Thread Rainer Hurling
oured columns of each panel. So afterwards there should be one sum in the first panel and another sum in the next panel (and so on, if more than two panels). It tried a little bit with groups and group.number but without success. Is there any easy solution for this? Any help is really appreciated. Rainer Hurling __ R-help@r-project.org 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.

Re: [R] rjava on FreeBSD

2012-01-11 Thread Rainer Hurling
On 11.01.2012 22:51 (UTC+1), Hasan Diwan wrote: Trying to install Rjava on FreeBSD 9 and am getting the following error: install.packages('rJava') trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/rJava_0.9-3.tar.gz' Content type 'application/x-gzip' length 537153 bytes (524 Kb) opened URL =

Re: [R] Lattice graph help

2011-11-21 Thread Rainer Hurling
lab = "count (n)", ylab = "titer" ) useOuterStrips(x) # the best way I found for colouring was in useOuterStrips useOuterStrips(x, strip = strip.custom(bg = "white"), strip.left = strip.custom(bg = "white") ) Hope t

Re: [R] Colour filling in panel.bwplot from lattice

2010-11-03 Thread Rainer Hurling
Am 03.11.2010 12:52 (UTC+1) schrieb Deepayan Sarkar: On Wed, Nov 3, 2010 at 4:25 PM, Rainer Hurling wrote: Am 03.11.2010 10:23 (UTC+1) schrieb Deepayan Sarkar: On Wed, Nov 3, 2010 at 4:11 AM, Dennis Murphywrote: Hi: I don't know why, but it seems that in bwplot(voice.part ~ h

Re: [R] Colour filling in panel.bwplot from lattice

2010-11-03 Thread Rainer Hurling
Am 03.11.2010 10:23 (UTC+1) schrieb Deepayan Sarkar: On Wed, Nov 3, 2010 at 4:11 AM, Dennis Murphy wrote: Hi: I don't know why, but it seems that in bwplot(voice.part ~ height, data = singer, main = "NOT THE RIGHT ORDER OF COLOURS\n'yellow' 'blue' 'green' 'red' 'pink' 'violet' 'brown' 'gold'"

Re: [R] Colour filling in panel.bwplot from lattice

2010-11-02 Thread Rainer Hurling
On 02.11.2010 22:37 (UTC+1), David Winsemius wrote: On Nov 2, 2010, at 5:08 PM, Rainer Hurling wrote: On 02.11.2010 21:43 (UTC+1), David Winsemius wrote: On Nov 2, 2010, at 4:07 PM, Rainer Hurling wrote: snipped quite a bit of talking past each otther Of course your example with eight

Re: [R] Colour filling in panel.bwplot from lattice

2010-11-02 Thread Rainer Hurling
On 02.11.2010 21:43 (UTC+1), David Winsemius wrote: On Nov 2, 2010, at 4:07 PM, Rainer Hurling wrote: snipped quite a bit of talking past each otther Of course your example with eight colours works, too. But as you can see in the plot, the colours have different order then in the vector

Re: [R] Colour filling in panel.bwplot from lattice

2010-11-02 Thread Rainer Hurling
On 02.11.2010 20:08 (UTC+1), David Winsemius wrote: On Nov 2, 2010, at 2:32 PM, Rainer Hurling wrote: On 02.11.2010 19:08 (UTC+1), David Winsemius wrote: On Nov 2, 2010, at 1:19 PM, Rainer Hurling wrote: Inspired by colouring the dots of box-whisker plots I am trying to also fill the boxes

Re: [R] Colour filling in panel.bwplot from lattice

2010-11-02 Thread Rainer Hurling
On 02.11.2010 19:08 (UTC+1), David Winsemius wrote: On Nov 2, 2010, at 1:19 PM, Rainer Hurling wrote: Inspired by colouring the dots of box-whisker plots I am trying to also fill the boxes (rectangles) with different colours. This seems not to work as I expected. Looking at the help page of

[R] Colour filling in panel.bwplot from lattice

2010-11-02 Thread Rainer Hurling
;,"red"), fill=c("yellow","blue","green","pink","red"), ...) }) plot(bp1, split=c(1,1,1,3)) plot(bp2, split=c(1,2,1,3), newpage=FALSE) plot(bp3, split=c(1,3,1,3), newpage=FALSE) - Is t

Re: [R] How to control in order of groups in xyplot

2010-10-31 Thread Rainer Hurling
A working minimal example would have been better, see FAQ. But I think you are looking for the following: X2 <- factor(c("m=2", "m=5", "m=10"), levels=c("m=2", "m=5", "m=10")) Here levels are ordered in your way. There might be other solutions for this ordering problem. Hope it helps, Rainer

Re: [R] transforming a dataset for association analysis

2010-10-30 Thread Rainer Hurling
On 30.10.2010 13:50 (UTC+1), Santosh Srinivas wrote: A more usable problem input would definitely help ... use dput to send a reproducible sample to the group Think the below should solve your problem read.csv("Book1.csv") Subject Item Score 1 Subject 1 Item 1 1 2 Subject 1 Item 2

Re: [R] R-2.12.0 hangs while loading RGtk2 on FreeBSD

2010-10-21 Thread Rainer Hurling
Am 21.10.2010 16:12 (UTC+1) schrieb Prof Brian Ripley: On Thu, 21 Oct 2010, Rainer Hurling wrote: I am working with R-2.12.0 on FreeBSD 9.0-CURRENT for a while now. I successfully installed more than 300 packages (most as dependencies of others). There are two packages I am not able to

[R] R-2.12.0 hangs while installing some packages on FreeBSD

2010-10-21 Thread Rainer Hurling
-- At this point the install process is hanging, R utilises no more CPU time. Same with package RGtk2. Is this a known error? Please let me know if I can give more information or try something different. Thanks in advance, Rainer Hurling __ R

Re: [R] Trouble compiling igraph. . .

2010-06-23 Thread Rainer Hurling
On 23.06.2010 13:29 (UTC+1), jim smith wrote: Been and R-user for about 5 years now in an industrial setting, and always find the mailing list most helpful. I have run into problem compiling igraph on R. I have contacted the maintainer of igraph, and he has determined that it is not an igraph p

Re: [R] No graphics capability on fresh install of R2.11.0 on FreeBSD 8.0

2010-06-17 Thread Rainer Hurling
On 17.06.2010 04:45 (UTC+1), Ben Madin wrote: G'day all, Hi Ben, I am working on a new FreeBSD 8.0 Server (remotely located), and have installed (now several times) R 2.11.0 but I cannot get any graphic outputs (everything else seems to be happening fine...) i'm also working with FreeBSD

Re: [R] any quick way to write this label

2010-03-28 Thread Rainer Hurling
On 28.03.2010 13:33 (UTC+1), Jim Lemon wrote: On 03/28/2010 07:56 PM, Roslina Zakaria wrote: Hi r-users, Is there any quick way to write this label? c("0","50","100","150","200","250","300","350","400","450", "500","550","600","650","700","750","800","850","900") If it is not for graphics, p

[R] filehash does not install on FreeBSD

2010-01-21 Thread Rainer Hurling
-- The only hint I found is on http://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-gcc/filehash-00install.html Is there anything known what causes this error? Please let me know if I can help. Thanks in advance, Rainer Hurling __ R-help

Re: [R] RPgSQL installation problem

2009-10-24 Thread Rainer Hurling
On 20.10.2009 09:35 (UTC+2), christiaan pauw wrote: Hi everybody I am trying to install RPsSQL and get the following error message: As far as I know package RPgSQL is outdated. The newer package RPostgreSQL works with R-2.9.0 and greater. So it seems to be a good time to update your R version

Re: [R] problem installing cairo on freebsd

2009-08-06 Thread Rainer Hurling
Late, but hopefully not too late ... Ben, I had same problem with Cairo-1.4-5 on FreeBSD CURRENT-8.0 (i386). On of the authors of Cairo (thanks to Simon Urbanek) reminded me to use gmake instead of make. So in my case I set the environment variable temporarily like this (in tcsh): setenv M

Re: [R] Lattice: regression lines within grouped xyplot panels

2008-08-09 Thread Rainer Hurling
On 09.08.2008 01:05 (UTC+1), Deepayan Sarkar wrote: On Fri, Aug 8, 2008 at 2:38 PM, Rainer Hurling <[EMAIL PROTECTED]> wrote: Dear community, I am looking for a possibility to draw 'regression lines' instead of 'smooth' lines in grouped xyplots. The following co

[R] Lattice: regression lines within grouped xyplot panels

2008-08-08 Thread Rainer Hurling
ogling around and reading in Deepayan Sakars interesting new book gave me no hints. Is there any chance of displaying regression lines (instead of smooth function) within grouped panels? Or am I entirely wrong with this? Thanks in advance, Rainer Hurling > sessionInfo() R ver

Re: [R] maptools no such file

2008-01-29 Thread Rainer Hurling
-- X-USF-Spam-Status: hits=-2.5 tests=BAYES_00,FORGED_RCVD_HELO X-USF-Spam-Flag: NO Am 29.01.2008 00:04 (UTC+1) schrieb Roger Bivand: > On Mon, 28 Jan 2008, Rainer Hurling wrote: > >> Roger, >> >> I tried your suggestions and ran into same problems as Pieter did before

Re: [R] maptools no such file

2008-01-28 Thread Rainer Hurling
Roger, I tried your suggestions and ran into same problems as Pieter did before. On 28.01.2008 12:35 (UTC+1), Roger Bivand wrote: > gmail.com> writes: > >> No, I get the same error message there... > > Please do not needlesly delete the thread content. Your original question was: > > "I'm ha

Re: [R] Lattice on FreeBSD

2008-01-24 Thread Rainer Hurling
installed and preferred R-packages. You have to install them again on the new version (other path, other fortran and other R version ...). There should be no more difficulties ;-) Hope this helps, Rainer Hurling Am 23.01.2008 20:14 (UTC+1) schrieb Armin Goralczyk: > On Jan 23, 2008 1:59

Re: [R] Problem of lmer under FreeBSD

2007-12-27 Thread Rainer Hurling
Hello Ronggui Huang, I am working with FreeBSD 8.0-CURRENT (i386) and R-2.6.1 (not built from ports). After loading version 0.99875-9 of lme4 and then executing the example library(lme4) example(lmer) all works fine for me. On 27.12.2007 09:19 (UTC+1), Ronggui wrote: > I encounter such

Re: [R] save as pdf

2007-10-22 Thread Rainer Hurling
It seems that you are using R-2.6.0 under Windows. Then this error has been discussed before. There is a patched version on CRAN. Look at http://cran.r-project.org/bin/windows/base/rpatched.html Hope this helps, Rainer Denis Aydin schrieb: > Hello, > > I just wanted to save a graphic in the

[R] path to libgfortran 'hardcoded' in R?

2007-10-20 Thread Rainer Hurling
I am using R-2.6.0 on FreeBSD 8.0-CURRENT (i386). In the last days I had problems when building packages SparseM, lme4 and randomForest. The below message shows for randomForest, that 'libgfortran' was not found. The same error appeared with SparseM and lme4. -

Re: [R] ELF file OS ABI invalid yes?????

2007-09-28 Thread Rainer Hurling
Hello Vittorio, I am running FreeBSD 7.0-CURRENT (i386) from yesterday and I am able to compile MCMCpack_0.9-1.tar.gz without any problem on R-2.6.0 RC (2007-09-27 r43002). Native FreeBSD devel/pcre-7.3 and lang/gcc42 packages are installed. Please look if your library versions are ok. Regard