Displaying 20 results from an estimated 127 matches for "istazahn".
2011 Jul 25
4
ggplot question: changing the label for the Y axis on a histogram
Some help with how to re-label the vertical axis in a histogram would be appreciated.
qplot(off.sc,weight=rel.freq,binwidth=.29,main="test Figure"+ylab("New from inside"))+ylab("New from outside")+
xlab("off.sc\nAggregated frequency plots for 17 equal intervals.")
The code
2011 Aug 22
3
automatic file input
Dear all,
I have 100 files which are used as input.and I have to input the name of my files again and again.the name of the files are 1.out, 2.out......100.out.
I want to know if there is anything like perl so that i can use something like this-
for($f = 1; $f <= 100; $f++) {
$file = $f.".out";
I have tried this thing in R but it does not work.Can somebody please help me.
2017 Aug 23
3
Getting all possible combinations
ummm, Ista, it's 2^n.
Cheers,
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 8:52 AM, Ista Zahn <istazahn at gmail.com> wrote:
> On Wed, Aug 23, 2017 at 11:33 AM, Christofer Bogaso
> <bogaso.christofer at gmail.com> wrote:
>> Hi again,
>>
>> I am exploring if R can help me to get all possible combinations of
>> members in a group.
>>
>> Let say I have...
2017 Aug 23
2
Getting all possible combinations
> On 23 Aug 2017, at 20:51 , Ista Zahn <istazahn at gmail.com> wrote:
>
> On Wed, Aug 23, 2017 at 12:35 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
>> ummm, Ista, it's 2^n.
>
> ummm yes ughhhh.
>
You didn't really say otherwise: sum(choose(n,0:n)) == 2^n by the binomial expansion of (1+1)^n (but yo...
2013 Apr 03
7
Canadian politcal party colours in ggplot2
A stupid question but does anyone know how to express the actual colours used by the main Canadian political parties? I want to do a couple of ggplot2 plots and have lines or rectangles that accurately reflect the party colours.
I can probably play around with RColorBrewer or something to figure it out but if some some already has got them it would save me some time especially with the NDP
2017 Aug 23
0
Getting all possible combinations
...rt
>
>
> 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 8:52 AM, Ista Zahn <istazahn at gmail.com> wrote:
>> On Wed, Aug 23, 2017 at 11:33 AM, Christofer Bogaso
>> <bogaso.christofer at gmail.com> wrote:
>>> Hi again,
>>>
>>> I am exploring if R can help me to get all possible combinations of
>>> members in a group.
>>&...
2017 Jul 06
3
Efficient swapping
...h(tl %in%
tmp[ii,'R1'], arr.ind = TRUE)
if(kk%%2!=0) { # swap the their levels between the two factors
qq <- tmp[ii,]$R1
tmp[ii,]$R1 <- tmp[ii,]$R2
tmp[ii,]$R2 <- qq
}
}
How to go about this case? Thanks!
On Thu, Jul 6, 2017 at 5:16 PM, Ista Zahn <istazahn at gmail.com> wrote:
> How about
>
> foo <- with(list(r1 = tmp$R1,
> r2 = tmp$R2,
> swapme = (as.numeric(tmp$R1) - as.numeric(tmp$R2)) %% 2 != 0),
> {
> tmp[swapme, "R1"] <- r2[swapme]
> tmp[swapme, "R2"]...
2016 Apr 25
0
Splitting Numerical Vector Into Chunks
...what do you want?
Cheers
Petr
> -----Original Message-----
> From: Sidoti, Salvatore A. [mailto:sidoti.23 at buckeyemail.osu.edu]
> Sent: Sunday, April 24, 2016 1:48 AM
> To: PIKAL Petr <petr.pikal at precheza.cz>; William Dunlap
> <wdunlap at tibco.com>; Ista Zahn <istazahn at gmail.com>
> Subject: RE: [R] Splitting Numerical Vector Into Chunks
>
> There are terrific suggestions and I so appreciate everyone's help!
>
> Just one additional question: I also have some time data that accompanies
> this analysis. It is in the format h:m:s:00 where...
2017 Jul 06
0
Efficient swapping
...h(tl %in%
tmp[ii,'R1'], arr.ind = TRUE)
if(kk%%2!=0) { # swap the their levels between the two factors
qq <- tmp[ii,]$R1
tmp[ii,]$R1 <- tmp[ii,]$R2
tmp[ii,]$R2 <- qq
}
}
How to go about this case? Thanks!
On Thu, Jul 6, 2017 at 5:16 PM, Ista Zahn <istazahn at gmail.com> wrote:
> How about
>
> foo <- with(list(r1 = tmp$R1,
> r2 = tmp$R2,
> swapme = (as.numeric(tmp$R1) - as.numeric(tmp$R2)) %% 2
!= 0),
> {
> tmp[swapme, "R1"] <- r2[swapme]
> tmp[swapme, "R2"]...
2012 Jan 03
2
Comparison of numeric and character vectors
Hi all,
I just discovered that R considers characters to be really big:
> "a" > 999
[1] TRUE
> "a" > 9e307
[1] TRUE
> "a" > 9e308
[1] FALSE
and that some characters are literally infinitely big:
> "Z" >= Inf
[1] TRUE
although not all:
> "a" > Inf
[1] FALSE
This came as a surprise to me (although it is quite
2009 Mar 01
1
Understanding Anova (car) output
Dear professor Fox and R helpers,
I have a quick question about the Anova function in the car package.
When using the default "type II" SS I get results that I don't
understand (see below).
library(car)
Data <- data.frame(y=rnorm(10), x1=factor(c(rep("a",4), rep("b",6))),
x2 = factor(c(rep("j", 2), rep("k", 3), rep("j", 2),
2018 Feb 20
0
Take the maximum of every 12 columns
...using regular
subsetting, e.g.
Y <- sapply(seq(from = 0, to = 2880, by = 12), FUN = function(offset) {
rowMaxs(X[, offset + 1:12])
})
Subsetting data frames by columns is already efficient, so the same
argument does not apply there.
/Henrik
On Tue, Feb 20, 2018 at 10:00 AM, Ista Zahn <istazahn at gmail.com> wrote:
> On Tue, Feb 20, 2018 at 11:58 AM, Bert Gunter <bgunter.4567 at gmail.com>
> wrote:
>
>> Ista, et. al: efficiency?
>> (Note: I needed to correct my previous post: do.call() is required for
>> pmax() over the data frame)
>>
>> >...
2018 Feb 20
2
Take the maximum of every 12 columns
...gt;> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>> <#m_4297398466082743447_m_6071581590498622123_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>> On Tue, Feb 20, 2018 at 5:10 PM, Ista Zahn <istazahn at gmail.com> wrote:
>>
>>> Hi Milu,
>>>
>>> byapply(df, 12, function(x) apply(x, 1, max))
>>>
>>> You might also be interested in the matrixStats package.
>>>
>>> Best,
>>> Ista
>>>
>>> On Tue, Feb 2...
2017 Aug 23
0
Getting all possible combinations
...g 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 1:58 PM, peter dalgaard <pdalgd at gmail.com> wrote:
>
>> On 23 Aug 2017, at 20:51 , Ista Zahn <istazahn at gmail.com> wrote:
>>
>> On Wed, Aug 23, 2017 at 12:35 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
>>> ummm, Ista, it's 2^n.
>>
>> ummm yes ughhhh.
>>
>
> You didn't really say otherwise: sum(choose(n,0:n)) == 2^n by the binomia...
2018 Mar 23
1
aggregate() naming -- bug or feature
On Fri, Mar 23, 2018 at 6:43 PM, Rui Barradas <ruipbarradas at sapo.pt> wrote:
> Hello,
>
> Not exactly an answer but here it goes.
> If you use the formula interface the names will be retained.
Also if you pass named arguments:
aggregate(iris["Sepal.Length"], by = iris["Species"], FUN = foo)
# Species Sepal.Length
# 1 setosa 5.006
# 2
2017 Nov 09
1
Sharing an R installation via NFS on ubuntu cluster
...problem, and indeed, not my question. my question was how
could I share the resulting R installation over NFS? Do I have to export
every location where apt-get installs a component or can I force apt-get to
place the installation in a certain location?
On 8 November 2017 at 17:37, Ista Zahn <istazahn at gmail.com> wrote:
> On Wed, Nov 8, 2017 at 6:14 AM, Florian Oswald <florian.oswald at gmail.com>
> wrote:
> > hi all,
> >
> > i want to share an R installation from a master node to several compute
> > nodes via NFS. all nodes run ubuntu 16.04. I tried bui...
2017 Dec 14
3
Errors in reading in txt files
On Thu, Dec 14, 2017 at 1:58 PM, Berend Hasselman <bhh at xs4all.nl> wrote:
>
>> On 14 Dec 2017, at 19:36, lily li <chocold12 at gmail.com> wrote:
>>
>> Hi R users,
>>
>> I have a question about reading from text files. The file has the structure
>> below:
>>
>> Time Column1 Column2
>>
2017 Jul 05
1
Help with reshape/reshape2 needed
Hi Tom,
Or perhaps:
#assume the data frame is named "tadf"
library(prettyR)
stretch_df(tadf,1,2)
Jim
On Thu, Jul 6, 2017 at 6:50 AM, Ista Zahn <istazahn at gmail.com> wrote:
> The reason it doesn't work easily with reshape/reshape2 is that the
> order of the rows is not determined. Your answer could be
>
> 1957 1958 ... 1985 1986
> 0.8625000 0.7500000 ... 0.7307692 0.23750000
> 0.0733945 0.6435644 ......
2017 Dec 15
2
Errors in reading in txt files
...> Don MacQueen
> Lawrence Livermore National Laboratory
> 7000 East Ave., L-627
> Livermore, CA 94550
> 925-423-1062
> Lab cell 925-724-7509
>
>
>
> On 12/14/17, 11:01 AM, "R-help on behalf of Ista Zahn" <
> r-help-bounces at r-project.org on behalf of istazahn at gmail.com> wrote:
>
> On Thu, Dec 14, 2017 at 1:58 PM, Berend Hasselman <bhh at xs4all.nl>
> wrote:
> >
> >> On 14 Dec 2017, at 19:36, lily li <chocold12 at gmail.com> wrote:
> >>
> >> Hi R users,
> >>
>...
2018 Feb 20
3
Take the maximum of every 12 columns
...aign=sig-email&utm_content=webmail>
Mail
priva di virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Tue, Feb 20, 2018 at 5:10 PM, Ista Zahn <istazahn at gmail.com> wrote:
> Hi Milu,
>
> byapply(df, 12, function(x) apply(x, 1, max))
>
> You might also be interested in the matrixStats package.
>
> Best,
> Ista
>
> On Tue, Feb 20, 2018 at 9:55 AM, Miluji Sb <milujisb at gmail.com> wrote:
> > Dear all,...