Hi all,
I wonder if there is a way to create a matrix with two (or even more)
column/row names? Thank you very much.
Have a nice day.
--
彭河森 Hesen Peng
http://hesen.peng.googlepages.com/
__
R-help@r-project.org mailing list
https://stat.ethz.ch
ames are easy since they are just one line. The column names
> I don't think can be constructed. Why do you want two column names?
> You won't be able to access them. You can always create your own
> object and put the two column names on it.
>
> On Mon, Aug 18, 2008 at 1
My dear R buddies,
I'm writing a loop program like this:
for(i in 1:n){
for(j in 1:i){
...
}
}
I wonder if there is any simple apply()-like function to make the loop
a little bit easier and faster. Thanks a lot.
Best wishes,
--
彭河森 Hesen Peng
http://hesen.peng.googlepage
stat.com
> +44 (0)20 8525 0696
> http://www.burns-stat.com
> (home of "The R Inferno" and "A Guide for the Unwilling S User")
>
>
> Hesen Peng wrote:
>>
>> My dear R buddies,
>>
>> I'm writing a loop program like this:
>>
>>
here must be some easier way of doing this. Besides,
if inequality condition is applied at the very beginning, this will
save me a lot of memory if n goes to a very large number. Is there any
suggestions? Thanks a lot.
Best wishes,
--
彭河森 Hesen Peng
http://hesen.pen
[1,] 5 5 6 6 6 6 7 7 7 8 8 9
> [2,] 9 10 7 8 9 10 8 9 10 9 10 10
>
>
> On Sat, Jul 11, 2009 at 9:23 AM, Hesen Peng wrote:
>> Hello my R buddies,
>>
>> I'm trying to gene
ject.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
彭河森 Hesen Peng
http://hesen.peng.googlepages.com/
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE d
LinkedIn
Hesen Peng requested to add you as a connection on LinkedIn:
--
Arnaud,
I'd like to add you to my professional network on LinkedIn.
- Hesen
Accept invitation from Hesen Peng
http://www.linkedin.com/e/qlt6CtWzi7sEoE_As_C0_wMf
main list)
contains all its corresponding branches. Is there any simpler way of
doing this? Thank you very much.
Best wishes,
--
Hesen Peng
http://hesen.peng.googlepages.com/
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
gt;
> opti <- constrOptim(c(0.5, 0.5, 0.1), rss, NULL, ui = rbind(c(0, 0), c(1,
> 0), c(0, 1)), ci = c(0, 1, 1));
>
>
>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list
> https://st
H, I'm assuming that you are trying to find the solution of \beta
to the question:
argmin |y-X\beta|_2^2, which is a quadratic programming problem.
On Tue, Jun 16, 2009 at 6:29 PM, Hesen Peng wrote:
> Hello,
>
> Since the optimization goal is quadratic and constraint is linea
his? I guess that I may either
need to change the way I plot foo, e.g. using some function rather
than par(), or use some parameters at the beginning. Thank you very
much,
Best wishes,
--
彭河森 Hesen Peng
http://hesen.peng.googlepages.com/
__
R-hel
to
work, either. Anyone has any suggestions? Thanks a lot,
Best wishes,
On Sat, Apr 4, 2009 at 6:06 AM, Dieter Menne
wrote:
>
>
> Hesen Peng-2 wrote:
>>
>> I created a plot function which used par(mfcol=c(2,1)) so that I could
>> have two plots together using just one
R)==c(nrow(M),nrow(N)),
and R[i,j] <- G(M[i,], N[j,]). And I wonder whether I may use some
functions like outer to the matrix.
Thank you very much and have a nice weekend.
--
彭河森 Hesen Peng
http://hesen.peng.googlepages.com/
__
R-help@r-project
ur second
> situation other than a double for loop. Unless
> G is linear, I think all other solutions will be
> equivalent to a double for loop, though the
> loops may be hidden.
>
>
> Patrick Burns
> [EMAIL PROTECTED]
> +44 (0)20 8525 0696
> http://www.burns-stat.com
list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
彭河森
Hesen Peng
__
R-help@r-project
package
in R to do this? Thank you very much,
Best wishes,
--
彭河森 Hesen Peng
http://hesen.peng.googlepages.com/
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.o
AIL PROTECTED]
>>
>> Webpage: http://www.jhsph.edu/agingandhealth/People/Faculty/Varadhan.html
>>
>>
>>
>>
>> ----
>>
>>
>>
>> -Original M
st of the value
just wander at 10^-8 scale and never shrink exactly to zero. So I
guess I should manually add a threshold to set the values to zero. But
does anyone know any choice of these thresholds? Thanks very much.
--
彭河森 Hesen Peng
http://hesen.peng.
Smfak+oLrQjXU=
> =fPMX
> -END PGP SIGNATURE-
>
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and prov
kets, i.e., no additional dependencies. Martin
>
> "Hesen Peng" <[EMAIL PROTECTED]> writes:
>
>> Hi,
>>
>> I wonder if there are any parallel package which do not rely on mpi or pvm?
>>
>> On Wed, Oct 8, 2008 at 5:09 PM, Markus Schmidb
://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
彭河森 Hesen Peng
http://hesen.peng.googlepages.com/
__
___
> Looking for last minute shopping deals?
>
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.o
nd
>
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible
014 Cph. K
> (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
> ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907
>
> ______
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/
ple
single-thread R program. Thanks a lot.
Best wishes,
--
彭河森 Hesen Peng
http://hesen.peng.googlepages.com/
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-
s you have a
> problem that is making heavy use of matrix operations.
>
> On Sun, Nov 23, 2008 at 4:38 PM, Hesen Peng <[EMAIL PROTECTED]> wrote:
>> My Dear R buddies,
>>
>> I'm feeling ashamed that I've been running my R program on some
>> servers for a while
: yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx
lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx smx est
tm2 ssse3 cx16 xtpr sse4_1 lahf_lm
bogomips: 4521.97
c
-- Forwarded message --
From: Hesen Peng <[EMAIL PROTECTED]>
Date: Mon, Nov 24, 2008 at 9:28 AM
Subject: Re: [R] More than doubling performance with snow
To: Prof Brian Ripley <[EMAIL PROTECTED]>
I'm sorry but I don't quite understand what "not runn
es on your
> computer (rather than, say, 8 cores).
>
> Hope this clarifies things a bit (and is reasonably accurate, since I don't
> have much experience with parallelisation),
> Stefan
>
> [ [EMAIL PROTECTED] | http://purl.org/stefan.evert ]
>
> ______
> R-help@r-pr
. Any suggestions?
Thanks a lot.
Best wishes,
--
彭河森 Hesen Peng
http://hesen.peng.googlepages.com/
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.htm
rsory look at that problem
> I was guessing that it is more like linear programming than statistics.
>
> --
> David Winsemius
>
>
> On Nov 29, 2008, at 6:51 PM, Hesen Peng wrote:
>
>> Dear R buddies,
>>
>> This weekend I became interested in solving Google Co
- DF[-1,]
> DFs <- lapply(split(DF0, cumsum(is.na(DF0[,3]))), na.omit)
> DFs
>
>
> On Sat, Nov 29, 2008 at 6:51 PM, Hesen Peng <[EMAIL PROTECTED]> wrote:
>> Dear R buddies,
>>
>> This weekend I became interested in solving Google Code Jam proble
33 matches
Mail list logo