Displaying 20 results from an estimated 1000 matches similar to: "Reducing a list of functions by composition fails"
2019 Oct 05
4
should base R have a piping operator ?
Hi John,
Thanks, but the Bizzaro pipe comes with many flaws though :
* It's not a single operator
* It has a different precedence
* It cannot be used in a subcall
* The variable assigned to must be on the right
* It doesn't trigger indentation when going to the line
* It creates/overwrite a `.` variable in the worksace.
And it doesn't deal gracefully with some lazy evaluation edge
1999 Jul 01
1
lme
I am using rw0641.
In my continuing quest to understand repeated measures analysis, I again
return to lme. I exported the Potthoff and Roy data Orthodont.dat from
S-PLUS 4.5 to avoid capture errors and ran the examples in the R help. I
imported the data.frame with
data <- read.table("Orthodont.dat",header=T)
attach(data)
and created the objects
Orthodont.fit1 <-
2019 Oct 05
0
should base R have a piping operator ?
Hello,
R is a functional language, pipes are not. There are even higher order
functions such as [1] and [2].
Besides, packages are part of R, R couldn't live without them. I find
pipes a good idea but I also find it better not to have them as part of
base R. If you want to use them, load a package, if you don't, don't.
This simple.
As for your example, compose, there is a
2019 Oct 05
6
should base R have a piping operator ?
Dear R-devel,
The most popular piping operator sits in the package `magrittr` and is used
by a huge amount of users, and imported /reexported by more and more
packages too.
Many workflows don't even make much sense without pipes nowadays, so the
examples in the doc will use pipes, as do the README, vignettes etc. I
believe base R could have a piping operator so packages can use a pipe in
2009 Nov 06
0
Nested objects not propagating from view
I thought I had this fixed, but apparently not. It works okay from the
console, but not from the view. I have the following:
# partial schema
create_table "users", :force => true do |t|
t.string "login", :null => false
t.string "first_name"
t.string "last_name"
t.string "email", :null => false
2005 Dec 14
2
new server: NT_STATUS_LOGON_FAILURE
I've googled, RTFMed, and I still can't fix this. Hoping someone here
can offer a suggestion. I'm learning, so please explain a little if you can.
I installed samba on a Ubuntu 5.10 machine (named mog). My XP machine
"sees" it, but the username/password dialog fails.
I've traced it down to what I think is an authentication problem:
mat@mog:/etc/samba$ smbclient -L
2005 Mar 17
2
R equivalent to funcall?
Dear all,
I have a list of time series and want to plot them.
Is there a way that the dot-dot-dot argument of a
function accepts a list as single arguments, such
as funcall in several Lisp dialects?
Greetings
Johannes
2010 Aug 06
3
Partial Function Application
Hi. I would like to partially apply a function to a list of arguments,
and I don't know how to do this in R, without perhaps writing default
values to the formals() of my function, or writing to the environment
object of a function. For context, my definition of partially apply
is: "fix some of the arguments, leaving the others as variables,
return a new function that takes the un-fixed
2006 Aug 02
0
Need help with SOAP and .NET
I am trying to consume a .NET webservice from
http://ws.melissadata.com/dqws/address.asmx
Whenever I call soap.doSingleRecord I receive an error saying that I have an
"Empty XML Request Structure". Looking at the sample SOAP request it appears
that all the settings I am sending need to be wrapped in <Request> tags. So
it lookes like I need to build a seperate Request object and
2006 Jun 22
1
[site] mog
so becky said mog is out, i remeber seeing it about a year ago on craigslist but didnt apply since it sounded like a last.fm ripoff and why waste time reinventing a wheel?..anyways, im wondering if it performs ok for anyone? it keeps freezing up on my trying to edit the page. sometimes a response comes back after about 10 seconds. im only guessing it runs rails, based on the gratuitous use of
2015 Mar 01
1
iterated lapply
> There are other instances, such as Reduce where there is a bug
> report pending that amounts to the same issue. Performing surgery on
> expressions and calling eval is not good practice at the R level and
> probably not a good idea at the C level either. It is worth thinking
> this through carefully before a adopting a solution, which is what we
> will be doing.
Surgery on
2014 May 04
3
[LLVMdev] function pointer from name?
Don't you have the same problem with other atoms, e.g. variable names?
This sounds like something that should be implemented in the language's
runtime library.
On May 4, 2014 7:15 PM, "Alexander Popolitov" <popolit at gmail.com> wrote:
> Hi everyone!
>
> I'm trying to implement lisp's funcall function, which roughly calls a
> function, name of which
2011 Feb 02
3
Applying multiple functions to one object
Dear list members,
I recall seeing a convenience function for applying multiple functions to
one object (i.e., almost the opposite of 'mapply?) somewhere.
Example: If the function was named ?fun? the output of
fun(3.14, mode, typeof, class)
would be identical to the output of
c(mode(3.14), typeof(3.14), class(3.14))
Is my memory failing me, or does such a function already exists in a
2007 Sep 11
0
composition of a matrix by matches between two data frames
Dear R-users,
I want to compose a new table (a presence/absence matrix of species in
regions) by matches between two data frames.
The first data frame has the species as header and the habitats in
which they occure as elements.
The second data frame has the regions as header and the occuring
habitats as elements.
To fill a cell in the new matrix (e.g. spcs.x in region.y) I want R to
compare the
2006 Aug 18
1
Anyone seen any articles on AJAX autocompleting mulitple...
I don''t even know what its called really, so its hard to search for.
Here''s an example. They do this on MOG.com:
There''s one text field visible. You type in a band name. Another text
field appears. It auto completes album names based on the band name you
chose in the first field.
What is this type of thing called? Where is some source code I could
look at?
any
2007 Sep 11
2
Ogg metadata stream embedding
Another spin-off discussion. The scheme used on
<http://wiki.xiph.org/index.php/Metadata> was to
packetize XML (split it up into packets at the
root level, each of which was self contained
(the terminology has temporarily abandoned me),
and have the bos packet as the opening <?xml
&c. stanza, the eos a </xml>.
It is probably more sensible to include a magic
number identifying
2015 Feb 26
3
iterated lapply
Would introducing the new frame, with the call to local(), cause problems
when you use frame counting instead of <<- to modify variables outside the
scope of lapply's FUN, I think the frame counts may have to change. E.g.,
here is code from actuar::simul() that might be affected:
x <- unlist(lapply(nodes[[i]], seq))
lapply(nodes[(i + 1):(nlevels - 1)],
2012 Oct 07
1
Problem with national characters in main, xlab, ylab with pdf{grDevices} / postscript {grDevices}
Hello.
I'm trying to make some graphics with nationalized labels (pdf for use
in LaTeX document).
On console (displayed on screen) using all looks ok:
----------------------------------------\/
data<-rnorm(100)
hist(data,main='Rozk?ad g?sto?ci punkt?w', xlab='Warto?? na osi y',
ylab='Cz?sto?? wyst?powania')
-------------------------------------------/\
But
2017 Nov 23
0
ccomp Composition and ggtern plot...
> I would like to use compositions package with ggplot/ggtern, other
> composition classes of compositional package can be used with ggtern
> by converting to data frame but I could do anything with c(ount)comp
> class. Ggplot/ggtern can not recognise comp and also can not be converted > to data frame. Is there any other way to do this?
As Jeff pointed out, the help page says ccomp
2008 Jul 31
0
Possible composition bug - please test
Hello,
I think I've stumbled over a composition bug (doesn't happen with
ExaNoComposite) which is also present in the Intel-Driver:
https://bugs.freedesktop.org/show_bug.cgi?id=16913
However the latest nouveau release I tested against was 0.10 (that one
shipped with Fedora9), and I don't have a spare system arround that I
could use for testing.
It would be really great if somebody