Displaying 20 results from an estimated 67 matches for "somename".
2025 Mar 29
4
Creating model formulas programmatically
...m almost certain that this has been asked and answered here
before, so my apologies for the redundant query.
I also know that there are several packages that will do this, but I wish
to do it using base R functions only (see below).
The query: Suppose I have a character vector of names like this:
somenames <- c("Heigh", "Ho", "Silver", "Away")
(maybe dozens or hundreds: i.e. lots of names)
Now suppose want to put these in a model formula like this:
~ (Heigh + Ho + Silver + Away)^2
... But **without** pasting them into a character vector and using
parse(te...
2016 Jul 17
2
Moving Maildir folders
Am 2016-07-17 um 02:36 schrieb Mark Foley:
> Not quite there yet. The folders show up, but I cannot see the mail inside the folders unless
> (in the Thunderbird client) I uncheck the setting "Show only subscribed folders". Still, the
> top-level folder is shown as grayed-out/italics as well as the the sub-folder INBOX. All other
> sub-folder at the same level as INBOX are not
2025 Mar 29
2
[External] Creating model formulas programmatically
...s here maybe, it may be perfectly
fine. So think of my post as mostly my attempt to learn some new tricks
rather than to solve a useful problem. I hope this is not unfair to the
list.
Cheers,
Bert
On Sat, Mar 29, 2025 at 3:12?PM Richard M. Heiberger <rmh at temple.edu> wrote:
> > somenames <- c("Heigh", "Ho", "Silver", "Away")
> > as.formula(paste("~(",paste(somenames, collapse="+"),")^2"))
> ~(Heigh + Ho + Silver + Away)^2
> >
>
> > On Mar 29, 2025, at 14:30, Bert Gunter <bgunter.456...
2025 Mar 30
1
Creating model formulas programmatically
Another solution. reformulate + substitute + as.formula:
substitute(~ (.)^2, list(. = reformulate(somenames)[[2]])) |> as.formula()
On Sat, Mar 29, 2025 at 5:31?PM Bert Gunter <bgunter.4567 at gmail.com> wrote:
>
> Note: I am almost certain that this has been asked and answered here
> before, so my apologies for the redundant query.
>
> I also know that there are several package...
2025 Mar 29
1
[External] Creating model formulas programmatically
> somenames <- c("Heigh", "Ho", "Silver", "Away")
> as.formula(paste("~(",paste(somenames, collapse="+"),")^2"))
~(Heigh + Ho + Silver + Away)^2
>
> On Mar 29, 2025, at 14:30, Bert Gunter <bgunter.4567 at gmail.com> wrot...
2010 Dec 04
2
Strange config behaviour while using /etc/dovecot/auth.d/somename.auth
While using Ubuntu 10.10 + Dovecot 1.2.12 + Postfix 2.7.1-1:
To export the authentication interface to Postfix, besides the usual
smtpd_sasl_* lines at postfix, I am using: the
following /etc/dovecot/auth.d/somename.auth file:
socket listen {
client {
path = /var/spool/postfix/private/auth-client
mode = 0660
user = postfix
group = postfix
}
}
But after restarting dovecot and doing a 'sudo dovecot -n' I get:
...
socket:
type: listen
client:
path: /var/spool/postfix/pr...
2025 Mar 30
1
Creating model formulas programmatically
...en by the others, it is
syntactically equivalent and yields identical results when used.
However, Duncan's Reduce() solution seems to me "obviously" better. In
fact, I think recurseCall just recapitulates the logic of Reduce().
4. And, again, I realize that versions of str2lang(paste(somename, collapse
= ' + ')) work just fine, but I was explicitly interested in eliciting the
bushel basket of elegant (imo) approaches that have been offered.
Again, my thanks to all.
Bert
"An educated person is one who can entertain new ideas, entertain others,
and entertain herself...
2025 Mar 30
1
[External] Creating model formulas programmatically
...hts and
suggestions. I have learned from them.
Thus far, my own aesthetic preference -- and therefore not to be considered
in any sense as a "best" approach -- is to use Duncan's suggestion to
produce the call directly with call() rather than substitute in my simple
for() loop; i.e.
somenames <- c("Heigh", "Ho", "Silver", "Away")
nms <- lapply(somenames, as.name)
frm<- nms[[1]]
for(x in nms[-1]) frm <<- call("+", frm, x)
frm <-bquote(~ (.(frm))^2, list(frm =frm))
## which yields
> frm
~(Heigh + Ho + Silver + Away)...
2025 Mar 30
1
[External] Creating model formulas programmatically
...erfectly fine. So think of my post as mostly my attempt to learn some new tricks rather than to solve a useful problem. I hope this is not unfair to the list.
Cheers,
Bert
On Sat, Mar 29, 2025 at 3:1?PM Richard M. Heiberger <rmh at temple.edu<mailto:rmh at temple.edu>> wrote:
> somenames <- c("Heigh", "Ho", "Silver", "Away")
> as.formula(paste("~(",paste(somenames, collapse="+"),")^2"))
~(Heigh + Ho + Silver + Away)^2
>
> On Mar 29, 2025, at 14:30, Bert Gunter <bgunter.4567 at gmail.com<mailto...
2025 Mar 30
1
[External] Creating model formulas programmatically
...rfectly fine. So think of my post as mostly my attempt to learn some new tricks rather than to solve a useful problem. I hope this is not unfair to the list.
Cheers,
Bert
On Sat, Mar 29, 2025 at 3:12?PM Richard M. Heiberger <rmh at temple.edu<mailto:rmh at temple.edu>> wrote:
> somenames <- c("Heigh", "Ho", "Silver", "Away")
> as.formula(paste("~(",paste(somenames, collapse="+"),")^2"))
~(Heigh + Ho + Silver + Away)^2
>
> On Mar 29, 2025, at 14:30, Bert Gunter <bgunter.4567 at gmail.com<mailto...
2010 Mar 06
7
form_for, submit, and parameters disappearing
Consider the following:
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2011 Nov 11
2
One step way to create data frame with variable "variable names"?
Suppose
plotx <- "someName"
modx <- "otherName"
plotxRange <- c(10,20)
modxVals <- c(1,2,3)
It often happens I want to create a dataframe or object with plotx or
modx as the variable names. But can't understand syntax to do that.
I can get this done in 2 steps, creating the data frame and then...
2016 Jul 17
3
Moving Maildir folders
...do not exist!
> > Thunderbird will render the missing folders gray in the UI, you probably cannot
> > subscribe to those, even from the subscribe dialogue. You should be able to
> > create them though.
>
> That is correct.
>
> If you want to create the "path" Somename/Foo/Bar/Baz (as seen by the IMAP
> client), even if only Somename and Baz contains messages, you must have the
> entire "path", that is tour mailbox directory must contain the directories:
>
> .Somename
> .Somename.Foo
> .Somename.Foo.Bar
> .Somename.Foo.Bar.Baz
>...
2025 Mar 29
1
[External] Creating model formulas programmatically
...s here maybe, it may be perfectly fine. So think of my post as mostly my attempt to learn some new tricks rather than to solve a useful problem. I hope this is not unfair to the list.
Cheers,
Bert
On Sat, Mar 29, 2025 at 3:12?PM Richard M. Heiberger <rmh at temple.edu> wrote:
> > somenames <- c("Heigh", "Ho", "Silver", "Away")
> > as.formula(paste("~(",paste(somenames, collapse="+"),")^2"))
> ~(Heigh + Ho + Silver + Away)^2
> >
>
> > On Mar 29, 2025, at 14:30, Bert Gunter <bgunter.456...
2007 Mar 19
1
How to set up different "bottles" in Wine, just like in Codeweaver's Crossover Office?
Hi all,
How does one set up different "bottles" like in Crossover office?
Meaning how do I isolate an installation of Program A from Program B,
when running under Wine?
is that possible? That's a neat feature they have in Crossover, but I
can't seem to find any documentation of how to do the samething in
generic WINE.
Robert
2009 Feb 09
0
Problem with upper case extension names
It seems as if there is a problem if one uses Local/SomeName at some_context in
a Dial application. If the extension is changed to somename then things
work.
I have an extension SomeName defined. In another extension I try to dial
this extension and it does not work saying extension/context not found. The
extension displayed has uppercase characters so the...
2025 Mar 30
1
[External] Creating model formulas programmatically
...y post as mostly my attempt to learn some new tricks rather than to solve a useful problem. I hope this is not unfair to the list.
>
> Cheers,
> Bert
>
>
>
>
>
> On Sat, Mar 29, 2025 at 3:12?PM Richard M. Heiberger <rmh at temple.edu> wrote:
>
>>> somenames <- c("Heigh", "Ho", "Silver", "Away")
>>> as.formula(paste("~(",paste(somenames, collapse="+"),")^2"))
>> ~(Heigh + Ho + Silver + Away)^2
>>>
>>
>>> On Mar 29, 2025, at 14:30, Bert Gunte...
2012 Mar 02
0
server signing = mandatory aix 6.1 (abridged debug)
Using samba 3.5.12 on aix 6.1 when I set "server signing = mandatory"
nothing can connect to my server. Included the smb.conf followed by errors
showing up in the level 10 debug output.
Thanks,
>cat /usr/local/samba/lib/smb.conf
[global]
workgroup = somename
netbios name = someserver
server string = somename Samba Server %v
security = user
encrypt passwords = yes
passdb backend = smbpasswd
log file = /somename/somename_LOGS/log.smbd.someserver
max log size = 200000
log level = 2
de...
1998 Nov 18
1
0.63 naming list elements
The following used to work (0.62.1 the latest that I used), and now
it doesn't (0.63.0):
force <- vector(mode = "list", length = 1)
names(force)[1] <- somename
It returns the error:
Error in "[<-"(NULL, 1) : object is not subsetable
You might argue that this approach is unnecessary now that R allows
subscripts that are out of range (e.g., force<-list(); force[["name"]] <- 42)
but I changed a lot of code to work as above, an...
2001 Sep 07
2
@ERROR
@ERROR: failed to open lock file /var/run/rsyncd.lock : No such file or
directory
solaris 2.6 (server)
rsync 2.3.1
this has never been a problem before.
This is a customer's error when trying to upload to our server.
They claim it is not their end. I disagree.
Anyway, I don't have their version info or OS.
Matt