Displaying 20 results from an estimated 300 matches similar to: "question about string to boor?"
2004 Nov 29
2
[BASIC] Solution of creating a sequence of object names
Dear R-users,
I state that this is for beginners, so you may ignore
this in order not to be irritated.
By the way, "patience" is another important thing,
together with "kindness", we should keep in mind when
we teach students and our own children as Jim Lemon
pointed out well in the context of the Socratic
method. You may know that being kind does not mean
giving
2011 Sep 16
1
Question about permutation test
Hi!
I am doing a permutation test on 7 data randomly selected into two groups,
one has 4 and the other 3. The purpose is to list all the 35 possible
outcomes and calculate p-value. I googled the function perm.test() and not
sure if my usage is correct. So I set a=c(7 data), b=(1,1,1,1,2,2,2) which
represents the group. Then I use the function pt=perm.test(a,b...). There's
a p-value popped
2011 Dec 12
2
Colours for sunflowerplot
Dear fellow R users,
I would like to draw a "sunflowerplot" because I have data (decade by
month) that plots multiple times on the same x-y co-ordinates. Further I
would like to colour each of the points/sunflower leaves on the plot
according to the group they belong to (i.e. which type of event each
represents within that decade and month). I thought that this would be
relatively
2010 May 11
1
has_one/belongs_to -- accessing the subordinate
With a has_one/belongs_to relationship, what''s the best way to guarantee
that the belongs_to object gets created and is accessible alongside the
has_one object? I *think* the after_create callback is a good choice,
but I discovered an oddity while trying it.
F''rinstance, if every horse has a carriage:
============
ActiveRecord::Schema.define do
create_table(:horses) {|t|
2015 Apr 06
6
Member server - winbind unable to resolve users/groups
On 06/04/15 12:37, buhorojo wrote:
> On 05/04/15 19:41, Rowland Penny wrote:
>> On 05/04/15 16:11, buhorojo wrote:
>>> On 05/04/15 17:03, Reindl Harald wrote:
>>>>
>>>>
>>>> Am 05.04.2015 um 16:55 schrieb buhorojo:
>>>>> We don't want best anything
>>>>
>>>> sad enough
>>>>
2018 Mar 06
4
Capturing warning within user-defined function
Hi, I am trying to automate the creation of tables for some simply
analyses. There are lots and lots of tables, thus the creation of a
user-defined function to make and output them to excel.
My problem is that some of the analyses have convergence issues, which I
want captured and included in the output so the folks looking at them know
how to view those estimates.
I am successfully able to do
2010 Jun 29
1
Performance enhancement for ave
library(plyr)
n<-100000
grp1<-sample(1:750, n, replace=T)
grp2<-sample(1:750, n, replace=T)
d<-data.frame(x=rnorm(n), y=rnorm(n), grp1=grp1, grp2=grp2)
system.time({
d$avx1 <- ave(d$x, list(d$grp1, d$grp2))
d$avy1 <- ave(d$y, list(d$grp1, d$grp2))
})
# user system elapsed
# 39.300 0.279 40.809
system.time({
d$avx2 <- ave(d$x, interaction(d$grp1, d$grp2, drop =
2011 Jan 31
2
identify subsets based on two grouping factors
Hi, I have a data.frame that has a categorical variable, for which I
would like to look at the distribution of levels of this variable,
based on a grouping of two other variables.
As an example:
x <- data.frame(obs=sample(c('low', 'high'),100, replace=TRUE),
grp1=sample(1:10, 100, replace=TRUE),
grp2=runif(100))
cut.grp1 <- cut(x$grp1, 3)
cut.grp2 <- cut(x$grp2, 3)
2010 Jan 12
1
Unable to map the group
Hi All,
I am using Samba 3.2.11 on sles 10. I have create a Unix group 'grp1' and
mapped it to a ntgroup "Group One". Unix group 'grp1' has one user i.e
'usr1'. 'net groupmap' command show the mapping with correct SID and gid
value. Please, have a look here.
# cat /etc/group | grep grp1
grp1:!:12613:usr1,raj1,raj2
#
# net groupmap list
Group One
2006 Nov 15
1
splineDesign and not-a-knot conditions
Hi,
I would like to fit an (interpolating) spline to data where the
derivatives at the endpoints of the interval are nonzero, thus the
natural spline endpoint-specification does not make sense. Books (de
Boor, etc) suggest that in this case I use not-a-knot splines.
I know what not-a-knot splines are (so if I were solving for the
coefficients directly I knew how to do this), but I don't
2011 Feb 08
2
Convert the output of by() to a data frame
I'd like to summarize several variables in a data frame, for multiple groups, and store the results in a data.frame. To do so, I'm using by(). For example:
df<-data.frame(a=1:10,b=11:20,c=21:30,grp1=c("x","y"),grp2=c("x","y"),grp3=c("x","y"))
dfsum<-by(df[c("a","b","c")],
2018 Mar 06
1
Capturing warning within user-defined function
tryCatch() is good for catching errors but not so good for warnings, as
it does not let you resume evaluating the expression that emitted
the warning. withCallingHandlers(), with its companion invokeRestart(),
lets you collect the warnings while letting the evaluation run to
completion.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Tue, Mar 6, 2018 at 2:45 PM, Bert Gunter <bgunter.4567 at
2018 Mar 06
0
Capturing warning within user-defined function
1. I did not attempt to sort through your voluminous code. But I suspect
you are trying to reinvent wheels.
2. I don't understand this:
"I've failed to find a solution after much searching of various R related
forums."
A web search on "error handling in R" **immediately** brought up ?tryCatch,
which I think is what you want.
If not, you should probably explain why it
2018 Dec 05
6
Restricting sending mail to domain or group
Hi folks,
has anybody a simple solution for the following request?
I have a group alias (all at company.com).
(1) Only company.com accounts should be able to send an email to everybody in that company via all at company.com.
(2) - rather optional: refine the restrictions, e.g. two groups, grp1 at company.com and grp2 at company.com. Grp1 members should be able to send mails to grp2 but not vice
2009 Dec 10
1
Help with beanplot fromatting
Dear Helpful R Users,
I am graphing some data using the beanplot, but I am having trouble
getting the output I desire. I have five tanks (A-E) and 2 groups for
each tank grp1 or grp2, except tank C where there is only grp1. (I only
changed the grouprep to "C grp1" for the example) When I plot them, I
would like A B C(only grp1 - half of the bean plot) then D and E (as
full beans).
2018 Mar 06
0
Capturing warning within user-defined function
You can capture warnings by using withCallingHandlers. Here is an example,
its help file has more information.
dataList <- list(
A = data.frame(y=c(TRUE,TRUE,TRUE,FALSE,FALSE), x=1:5),
B = data.frame(y=c(TRUE,TRUE,FALSE,TRUE,FALSE), x=1:5),
C = data.frame(y=c(FALSE,FALSE,TRUE,TRUE,TRUE), x=1:5))
withWarnings <- function(expr) {
.warnings <- NULL # warning handler will
2018 Dec 05
1
Restricting sending mail to domain or group
On Wed, 5 Dec 2018, Alexander Dalloz wrote:
>> I have a group alias (all at company.com).
>> (1) Only company.com accounts should be able to send an email to everybody
>> in that company via all at company.com.
>> (2) - rather optional: refine the restrictions, e.g. two groups,
>> grp1 at company.com and grp2 at company.com. Grp1 members should be able to send
2011 Jan 31
1
arranging pie charts in a matrix layout with row/col labels
Hi, I have a vector of data, that I group based on two factors via
tapply. For each such grouping I would like to plot a pie chart. I
can layout these pie charts in a matrix layout, correpsonding to the
levels of the two factors. But I am getting stuck on how to label the
rows and colums. My current approach looks like this:
x <- data.frame(obs=sample(c('low', 'high'),100,
2011 Apr 13
1
error for ttest
Hello all,
I have arranged my data as per Dennis's suggestion in this post
http://www.mail-archive.com/r-help at r-project.org/msg107156.html.
the posted code works fine but when I try to apply it to my data, i get ">
u2 <- ddply(xxm, .(plateid, cytokine), as.data.frame.function(f))
Error in t.test.formula(conc ~ Self_T1D, data = df, na.rm = T) :
grouping factor must have
2015 Apr 06
1
Member server - winbind unable to resolve users/groups
On 06/04/15 13:06, buhorojo wrote:
> On 06/04/15 14:00, Rowland Penny wrote:
>> On 06/04/15 12:37, buhorojo wrote:
>>> On 05/04/15 19:41, Rowland Penny wrote:
>>>> On 05/04/15 16:11, buhorojo wrote:
>>>>> On 05/04/15 17:03, Reindl Harald wrote:
>>>>>>
>>>>>>
>>>>>> Am 05.04.2015 um 16:55 schrieb