similar to: A trap for young players with the lapply() function.

Displaying 20 results from an estimated 7000 matches similar to: "A trap for young players with the lapply() function."

2017 Mar 28
2
A trap for young players with the lapply() function.
On 28/03/17 15:26, Charles C. Berry wrote: > On Mon, 27 Mar 2017, Rolf Turner wrote: > >> >> From time to time I get myself into a state of bewilderment when using >> apply() by calling it with FUN equal to a function which has an >> "optional" argument named "X". >> >> E.g. >> >> xxx <-
2017 Mar 28
0
A trap for young players with the lapply() function.
>I think that the suggestion I made, in response to a posting by Barry >Rowlingson, that the first argument of lapply() be given the name of ".X" rather >than just-plain-X, would be (a) effective, and (b) harmless. It would break any call to *apply() that used X= to name the first argument. There are currently 3020 such calls in the R code in CRAN. One can avoid the problem
2017 Mar 27
2
A trap for young players with the lapply() function.
On Mon, Mar 27, 2017 at 1:17 AM, Rolf Turner <r.turner at auckland.ac.nz> wrote: > > Is there any way to trap/detect the use of an optional argument called > "X" and thereby issue a more perspicuous error message? > > This would be helpful to those users who, like myself, are bears of very > little brain. > > Failing that (it does look impossible) You can
2017 Mar 29
1
A trap for young players with the lapply() function.
(inline) On Tue, 28 Mar 2017, Rolf Turner writes: > On 28/03/17 04:21, Barry Rowlingson wrote: >> On Mon, Mar 27, 2017 at 1:17 AM, Rolf Turner <r.turner at auckland.ac.nz> wrote: >>> >>> Is there any way to trap/detect the use of an optional argument called >>> "X" and thereby issue a more perspicuous error message? >>> >>>
2017 Mar 27
0
A trap for young players with the lapply() function.
On 28/03/17 04:21, Barry Rowlingson wrote: > On Mon, Mar 27, 2017 at 1:17 AM, Rolf Turner <r.turner at auckland.ac.nz> wrote: >> >> Is there any way to trap/detect the use of an optional argument called >> "X" and thereby issue a more perspicuous error message? >> >> This would be helpful to those users who, like myself, are bears of very >>
2017 Aug 23
1
Flummoxed by gsub().
On 24/08/17 02:46, Bert Gunter wrote: > Inline. > > -- Bert > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Wed, Aug 23, 2017 at 2:29 AM, Rolf Turner <r.turner at
2018 Nov 03
3
Red Hat is Planning To Deprecate KDE on RHEL By 2024
On 11/03/2018 01:22 AM, Nicolas Kovacs wrote: > Le 02/11/2018 ? 21:19, mark a ?crit : >> Odd, I've never had that problem. On the other hand, I *really* dislike >> gnome. I think their target is 16 yr olds. > > My reaction to GNOME 3 has been roughly the same as with systemd. At > first, I hated it with a passion. Then I saw everyone else seemed to use > it. So I
2017 Sep 03
0
[FORGED] Re: Block comment?
On 02/09/2017 6:57 PM, Rolf Turner wrote: > On 03/09/17 03:56, William Dunlap via R-help wrote: >> Is the reason you want a block comment containing code (as opposed to >> arbitrary text) that you want to be able to easily run the commented out >> code? If so the 'if()' construct has the advantage that you only need to >> change code at the start of the comment,
2017 Sep 03
2
[FORGED] Re: Block comment?
On 03/09/17 12:29, Duncan Murdoch wrote: > On 02/09/2017 6:57 PM, Rolf Turner wrote: >> On 03/09/17 03:56, William Dunlap via R-help wrote: >>> Is the reason you want a block comment containing code (as opposed to >>> arbitrary text) that you want to be able to easily run the commented out >>> code? If so the 'if()' construct has the advantage that you
2017 Sep 02
2
[FORGED] Re: Block comment?
On 03/09/17 03:56, William Dunlap via R-help wrote: > Is the reason you want a block comment containing code (as opposed to > arbitrary text) that you want to be able to easily run the commented out > code? If so the 'if()' construct has the advantage that you only need to > change code at the start of the comment, not at both ends. > > The if(FALSE) could be
2018 Nov 02
5
Red Hat is Planning To Deprecate KDE on RHEL By 2024
Leroy Tennison wrote: > I use KDE and they need to, quality is lacking, every time I boot up I > get to discover where my icons will be located (and this has been going > on through at least a couple of recvisions). Locking doesn't help, even > making the file I thought contained the positions immutable didn't help. > I'm going to have to look at Trinity. > Odd,
2017 Sep 13
2
Help in R
I don?t know if my question is answerable, but it is worth a try. I have a data set that I am trying to analyze in R for a course and the instructions were to get a standard deviation which I already computed in R and use that number and change it to a biased standard deviation?.(I have the two equations and I understand the difference between the two and how the unbiased has the degree of
2017 Sep 02
0
Block comment?
Is the reason you want a block comment containing code (as opposed to arbitrary text) that you want to be able to easily run the commented out code? If so the 'if()' construct has the advantage that you only need to change code at the start of the comment, not at both ends. The if(FALSE) could be if(isTRUE(getOption("DEBUG_ISSUE_XYZ"))) so you would not even have to change code
2010 Jul 06
1
with(x, Recall()) Crash
R-devel, I discovered a segfault in my R code that boiled down to my incorrect use of the Recall() function embedded within a with() function. Since segfaults are generally bad things, even when it's the user's fault for writing nonsense code, I thought I'd pass along the offending code. I've tested the crash on R 2.11.1 (on Linux and Mac), but not in devel versions of R. HTH,
2006 Apr 13
4
Creating an environment for a function.
I am trying to build a function in a context where the environment concept would appear to be useful. But I'm a bit foggy about this concept and would appreciate some pointers and advice. Basically the function I'm building, say foo(x,t), is a function of two variables). Depending on the value of t, foo will return one of the values f1(x), f2(x), ..., fk(x), where each of f1, ..., fk is
2017 Aug 23
0
Flummoxed by gsub().
Inline. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Aug 23, 2017 at 2:29 AM, Rolf Turner <r.turner at auckland.ac.nz> wrote: > > On 23/08/17 18:33, Stefan Evert wrote: > >> >>> On 23 Aug 2017,
2003 Nov 06
1
Samba 3.0 and ADS How to
HelloList, Do someone have got a link/document/"How To" for setting up Samba 3.0 in ADS-Enviroment. I read Samba-Collection-How-To, but I got stuck and need help. My favour will be a easy and perspicuous manual like a walkthrough Thanks in advance. Regards Dominik Brosch
2017 Aug 23
4
Flummoxed by gsub().
On 23/08/17 18:33, Stefan Evert wrote: > >> On 23 Aug 2017, at 07:45, Rolf Turner <r.turner at auckland.ac.nz> wrote: >> >> My reading of ?regex led me to believe that >> >> gsub("[:alpha:]","",x) >> >> should give the result that I want. > > That's looking for any of the characters a, l, p, h, : . OK. I see
2006 Sep 01
1
Summary --- Local library under Windoze.
Prof. Brian Ripley solved the problem. He wrote: > I was not aware that this works with relative paths for any version > of R. Try using a full path, which always works for me. I tried it using a full path, and bingo! It worked like a charm. Under Unix the relative path also works, but. Prof. Ripley also remarked: > If indeed your filesystem is readonly, you will have problems
2017 May 16
5
Frauenhofer signing off on mp3, ogg stream player for Macs?
First: I am not a lawyer, this is no legal advice! On 16 May 2017, at 0:25, Robert Jeffares wrote: > Jack, > > I am using AAC+ encoded by Darkice and distributed on Icecast2 on a > Ubuntu server. I had to install a number of open source libraries and > compile darkice from source. No licence. This sounds like it would violate the license, given that the FAQ on