Re: [R] Reading an excel file

2019-01-10 Thread Albrecht Kauffmann
read.xlsx() works well if the xlsx-file has not too much joined cells. Particularly in the latter case I would recommend to convert the xlsx-file into csv format and then read.csv(). Greetings Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Do, 10. Jan 2019, um 22:43, schrieb

Re: [R] Bug (?): reading binary files in Windows 10

2018-12-06 Thread Albrecht Kauffmann
Dear Kate, I cannot find your small script, but I downloaded the file using your command line. It has the size of 142773760 bytes (136.2 MB). Hth, Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Do, 6. Dez 2018, um 13:45, schrieb Kate Stone: > Hello r-help, > > Could yo

Re: [R] How can I create a loop for this? Please help me

2018-10-05 Thread Albrecht Kauffmann
Hi Ivy, try this: k <- 0 i <- 1 while((k*12+13) <= ncol(Sent2Field2@data) { i <- k+1 n <- paste("Sent2Field2",i, sep="_") assign(n, Sent2Field2@data[,c(1,k*12+c(2:13))]) k <- k+1 } Best, Albrecht -- Albrecht Kauffmann alkau...@fas

Re: [R] about the series of numbers

2018-09-20 Thread Albrecht Kauffmann
Dear Bogdan, for increments <>1, it needs "by". Try seq(.1,.9,.1) Best, Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Do, 20. Sep 2018, um 09:26, schrieb Bogdan Tanasa: > Dear all, > > if I may ask please a question that is likely very naive : >

Re: [R] Problem in installing rgdal package in linux

2018-09-18 Thread Albrecht Kauffmann
Hi Lily, did you install gdal on your system? Best, Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Di, 18. Sep 2018, um 08:59, schrieb lily li: > Hi all, > > I am installing rgdal package in linux for R, and got the error below. I > typed: $ install.packages("rgd

Re: [R] Why can't I make use of tcltk in this installation?

2018-09-10 Thread Albrecht Kauffmann
Hi Patrick, did you give the compiler path instructions to tclConfig.sh and tkConfig.sh , as ../R-3.5.1/configure --with-tcl-config=/usr/lib64/tclConfig.sh --with-tk-config=/usr/lib64/tkConfig.sh ? Best, Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Mo, 10. Sep 2018, um 10:54

Re: [R] For loop with multiple iteration indexes

2018-09-10 Thread Albrecht Kauffmann
y other function using x[k] and y[k] as arguments } print(r) Is it this what you meant? Best, Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Mo, 10. Sep 2018, um 00:49, schrieb David Disabato: > Hi R-help, > > I am trying to create a for loop with multiple iteration inde

Re: [R] searching for a specific row name in R

2018-08-13 Thread Albrecht Kauffmann
Hello Deepa, sum(x[,2] == "A501") or which(x[,2] == "A501") . Best, Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Mo, 13. Aug 2018, um 07:10, schrieb Deepa Maheshvare: > Hello Everyone, > > I have a 1000 x 20 matrix. The second colum

Re: [R] how to write a loop to repetitive jobs

2018-04-17 Thread Albrecht Kauffmann
pr3.csv", head=T) seg[[s]]$id <- sn } Greetings, Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Mo, 16. Apr 2018, um 22:54, schrieb Ding, Yuan Chun: > Hi All.., > > I need to do the following repetitive jobs: > > seg71 <- read.csv("C:/Awork/geneAssociation/removed

Re: [R] Information about compatibility R

2018-04-11 Thread Albrecht Kauffmann
Hi Marcos, excuse me, please, Iam only familiar with opensuse. Best regards, Albrecht Kauffmann -- Albrecht Kauffmann alkau...@fastmail.fm Am Mi, 11. Apr 2018, um 21:15, schrieb Marcos Fiorini: > Hi Albrecht, thanks for your return. > > I'm using the SUSE Linux Enterprise

Re: [R] Information about compatibility R

2018-04-11 Thread Albrecht Kauffmann
Dear Marcos, The current Version of opensuse Linux is Leap 42.3 (when I'm still right). Probably you should upgrade your Linux system before installing one of the most recent versions of R. Best Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Mi, 11. Apr 2018, um 17:31, schrieb

Re: [R] Fwd: Learning advanced R

2018-03-14 Thread Albrecht Kauffmann
;)' This works fine. Thank you for all hints! Best, Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Mi, 14. Mär 2018, um 19:24, schrieb Albrecht Kauffmann: > I've found two problems in interpreting adv-r-master/book/build-book.r: > > 1. All pathes in build-book.r refer to

Re: [R] Fwd: Learning advanced R

2018-03-14 Thread Albrecht Kauffmann
files (e.g. "base-types.Rmd") cannot be found. Pandoc I have installed. Maybe there will arise further problems, but still I am experimenting with pathes. Best, Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Mi, 14. Mär 2018, um 18:56, schrieb Rich Shepard: > On We

Re: [R] Fwd: Learning advanced R

2018-03-14 Thread Albrecht Kauffmann
Dear Jeff, Latex is also required for the R-manuals in the base R installation, and for this it works fine on my PC. Best, Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Mi, 14. Mär 2018, um 17:50, schrieb Jeff Newmiller: > I recommend reading it directly via the webs

Re: [R] [ESS] R window: Text is read only (: Another round :)

2017-12-20 Thread Albrecht Kauffmann
Dear Christian, to leave the read-only state, did you try C-x C-q in the mode line? Cheers, Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Mi, 20. Dez 2017, um 14:26, schrieb Christian: > Dear All > > Working along in R (Emacs {Aquamacs}, ESS ) usually I am getting a

Re: [R] tcltk problems

2017-11-18 Thread Albrecht Kauffmann
Did you istall the tcl- and tk-devel packages? Best, Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Sa, 18. Nov 2017, um 05:00, schrieb Erin Hodgess: > When I have compiled from sourced on Ubuntu, I did NOT include the > "with-tcltk" and it worked fine. Did you

Re: [R] R-3.4.2: make check stops at line 698 of tests/reg-tests-1d.R

2017-11-01 Thread Albrecht Kauffmann
r compilation. All the best, Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm Am Mi, 1. Nov 2017, um 19:24, schrieb Duncan Murdoch: > > On 01/11/2017 1:08 PM, Albrecht Kauffmann wrote: > > Am Mi, 1. Nov 2017, um 17:40, schrieb Duncan Murdoch: > >> On 01/11/2017 12

Re: [R] R-3.4.2: make check stops at line 698 of tests/reg-tests-1d.R

2017-11-01 Thread Albrecht Kauffmann
Am Mi, 1. Nov 2017, um 17:40, schrieb Duncan Murdoch: > On 01/11/2017 12:02 PM, Albrecht Kauffmann wrote: > > Dear Duncan, > > > > Many thanks! > > > > Am Mi, 1. Nov 2017, um 16:17, schrieb Duncan Murdoch: > >> On 01/11/2017 8:11 AM, Albrecht Kauffm

Re: [R] R-3.4.2: make check stops at line 698 of tests/reg-tests-1d.R

2017-11-01 Thread Albrecht Kauffmann
Dear Duncan, Many thanks! Am Mi, 1. Nov 2017, um 16:17, schrieb Duncan Murdoch: > On 01/11/2017 8:11 AM, Albrecht Kauffmann wrote: > > Hi all, > > > > after compiling R-3.4.2 on opensuse leap 42.3, make check failed. Until > > R-3.4.1 I never had a problem with th

[R] R-3.4.2: make check stops at line 698 of tests/reg-tests-1d.R

2017-11-01 Thread Albrecht Kauffmann
rtWarning(ap2 <- available.packages(repos = "http://foo.bar;))? With many thanks for every hint, Albrecht -- Albrecht Kauffmann alkau...@fastmail.fm __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch

[R] ML estimation of a two-sided truncated regression model

2011-03-15 Thread Albrecht Kauffmann
do truncated regression for this situation? With many thanks for any hint Albrecht Dr. Albrecht Kauffmann Assistant Researcher Halle Institute for Economic Research (IWH) Department of Urban Economics __ R-help@r-project.org mailing list https

[R] read.dta for files from stata 9.0

2008-03-18 Thread Albrecht Kauffmann
Dear R-helpers, if I want to read a .dta-file generated by stata 9.0 with read.dta (foreign), I get the message not a stata version 5-8 .dta-file. I'm using R-2.6.2 and the latest version of the foreign package. Has someone any hint? With many thanks, Albrecht

[R] ESRI Shapefile for EU-25

2007-11-13 Thread Albrecht Kauffmann
Hi all, who knows how to get an ESRI Shapefile for the NUTS-2 Regions of the enlarged European Union? Particularly I want to draw maps of Germany, Poland, Czech Republik, Hungary and Austria. I've found Shapefiles for the US, Russia and other countries elsewhere in the web, but for Europe it