Re: [R] Col names in a data frame

2021-01-21 Thread Jan T. Kim via R-help
it looks to me that the names are cranked through make.names for data frames case while that doesn't happen for matrices. Peeking into the `colnames<-` code supports this idea, but that in turn uses `names<-` which is a primitive and so defies further easy peeking. The data.frame function

Re: [R] Function in default parameter value closing over variables defined later in the enclosing function

2019-01-23 Thread Jan T Kim via R-help
Hi Duncan, On Wed, Jan 23, 2019 at 10:02:00AM -0500, Duncan Murdoch wrote: > On 23/01/2019 5:27 a.m., Jan T Kim wrote: > >Hi Ivan & All, > > > >R's scoping system basically goes to all environments along the call > >stack when trying to resolve an unbound variable,

Re: [R] Function in default parameter value closing over variables defined later in the enclosing function

2019-01-23 Thread Jan T Kim
Hi Ivan & All, R's scoping system basically goes to all environments along the call stack when trying to resolve an unbound variable, see the language definition [1], section 4.3.4, and perhaps also 2.1.5. Generally, unbound variables should be used with care. It's a bit difficult to decide

Re: [R] reading data problem

2018-09-24 Thread Jan T Kim via R-help
> data: a<-read.csv("for_R_graphs.csv", header=T, sep=",") > > On Mon, Sep 24, 2018 at 2:07 PM Jan T Kim via R-help > wrote: > >> Yet one more: have you tried adding quote="" to your read.table >> parameters? Quote characters have a 50% chance of b

Re: [R] reading data problem

2018-09-24 Thread Jan T Kim via R-help
Yet one more: have you tried adding quote="" to your read.table parameters? Quote characters have a 50% chance of being balanced, and they can encompass multiple lines... On Mon, Sep 24, 2018 at 11:40:47AM -0700, Bert Gunter wrote: > One more question: > > 5. Have you tried shutting down,

Re: [R] R shared library (/usr/lib64/R/lib/libR.so) not found.

2018-08-23 Thread Jan T Kim via R-help
Hi Rolf & All, I haven't built R in a while, but my general expectation of an autotools based build & install would be that the default prefix is /usr/local, rather than /usr. So I'd expect the shared libs in /usr/local/lib, /usr/local/lib64 etc. I also have a recollection that I once installed

Re: [ESS] Curly brace indentation

2016-12-08 Thread Jan T Kim via ESS-help
Hi Martin and All, thanks for your reply, please see my comments inline below: On Thu, Dec 08, 2016 at 09:09:10AM +0100, Martin Maechler wrote: > >>>>> Jan T Kim via ESS-help <ess-help@r-project.org> > >>>>> on Tue, 6 Dec 2016 01:11:20 + writes

[ESS] Curly brace indentation

2016-12-05 Thread Jan T Kim via ESS-help
es occurs only after some delay caused by briefly flashing the cursor at the corresponding opening brace. Quite possibly I'm using a clumsy approach to try to get indentation during typing consistent with that produced by indent-region, so suggestions where I may have messed up are welcome. Best

Re: [R] How to reach the column names in a huge .RData file without loading it

2016-03-19 Thread Jan T Kim
the colnames! > >> > > >> > Thanks > >> > > >> > [[alternative HTML version deleted]] > >> > > >> > ______________ > >> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and m

Re: [R] Help with functions as arguments

2013-02-12 Thread Jan T Kim
T. Kim ---+ | email: jtt...@gmail.com| | WWW: http://www.jtkim.dreamhosters.com/ | *-= hierarchical systems are for files, not for humans

Re: [R] Writing escaped unicode

2012-12-11 Thread Jan T Kim
are in the ASCII range), but if the volume you're piping into the client is small, this may be good enough. Best regards, Jan -- +- Jan T. Kim ---+ | email: jtt...@gmail.com| | WWW: http

Re: [R] pass by reference

2012-08-14 Thread Jan T Kim
. -- +- Jan T. Kim ---+ | email: jtt...@gmail.com| | WWW: http://www.jtkim.dreamhosters.com/ | *-= hierarchical systems are for files, not for humans

Re: [R] Best Programming Practices regarding data frames

2012-08-02 Thread Jan T Kim
. __ 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. -- +- Jan T. Kim

Re: [R] Singleton pattern

2012-03-16 Thread Jan T. Kim
-guide.html and provide commented, minimal, self-contained, reproducible code. -- +- Jan T. Kim ---+ | email: jtt...@gmail.com| | WWW: http://www.jtkim.dreamhosters.com

Re: [R] A critique of R and S-PLUS

2008-10-30 Thread Jan T. Kim
, Jan -- +- Jan T. Kim ---+ | email: [EMAIL PROTECTED]| | WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems are for files, not for humans

Re: [R] Programming Concepts and Philosophy

2008-06-20 Thread Jan T. Kim
of good programming is that there should be a one-to-one correspondence between instances in the program and objects in the real world (problem domain etc.), and having no references makes achieving this difficult (and quite impossible for more complex systems). Best regards, Jan -- +- Jan T. Kim

Re: [R] Measuring dispersion

2008-06-18 Thread Jan T. Kim
-- +- Jan T. Kim ---+ | email: [EMAIL PROTECTED] | | WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems are for files, not for humans

Re: [R] Plot timer in a for loop

2008-06-10 Thread Jan T. Kim
Sys.sleep(0.5); to the loop should do this trick. Best regards, Jan -- +- Jan T. Kim ---+ | email: [EMAIL PROTECTED] | | WWW: http://www.cmp.uea.ac.uk/people/jtk

Re: [R] Question Regarding 'pipe'

2008-04-08 Thread Jan T. Kim
, such as a few lines of description of the content of temp.txt, and why you're trying to use awk (rather than R itself) to achieve whatever you're trying to achieve? Best regards, Jan -- +- Jan T. Kim ---+ | email: [EMAIL PROTECTED

Re: [R] Question Regarding 'pipe'

2008-04-08 Thread Jan T. Kim
still not convinced, though, that running that while loop using awk has any advantages over programming it in R, but it's your choice... Best regards, Jan On Tue, Apr 8, 2008 at 4:45 AM, Jan T. Kim [EMAIL PROTECTED] wrote: On Mon, Apr 07, 2008 at 07:42:50PM -0500, [EMAIL PROTECTED] wrote

Re: [R] Thinking about using two y-scales on your plot?

2008-03-26 Thread Jan T. Kim
-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. -- +- Jan T. Kim

Re: [R] R as a programming language

2007-11-08 Thread Jan T. Kim
primary scripting language. (I tried to get there a while ago and wrote a filterpipe patch to achieve (2), currently I work use a mix of Python and R). Best regards, Jan -- +- Jan T. Kim ---+ | email: [EMAIL PROTECTED