Displaying 20 results from an estimated 10000 matches similar to: "list element to matrix"
2007 Nov 09
1
help with lasso2 package
X is a matrix and F is a vector.
F2 <- data.frame(cbind(X,F))
F2
V1 V2 V3 F
1 -0.250536332 -1.4755883 1.9580974 -2.136487
2 -0.009856084 0.4953269 0.5486092 -2.744482
3 -0.406962682 0.7729631 0.1861905 -2.891821
4 1.938780097 0.7469251 1.2537781 -1.212992
5 -0.332370358 1.1943637 0.7114278 -1.830441
modF<-formula(F ~ V1 + V2 + V3) #no error message
2007 Sep 03
1
match help
In my code, I would like to replace entries in t with
entries from a random normal distribution.
n<-10
> nl<-round(1.5+rexp(1,rate=2)
rate=2))
> nl
[1] 2
> r<-1:n
> s<-sort(sample(r,nl))
> t<-match(r,s)
> r
[1] 1 2 3 4 5 6 7 8 9 10
> s
[1] 3 8
>t
[1] NA NA 1 NA NA NA NA 2 NA NA
t.random<-function(x) {for(i in 1:n) ifelse(x[i]!=NA,
2007 Aug 31
2
Bugreport on integration of Sweave and latex beamer
I think I have isolated a problem with integration between Sweave and beamer.
Could you please see the file:
http://www.mayin.org/ajayshah/tmp/bugdemo.Rnw
Unfortunately, it uses some of my internal libraries, so you can't run
it. When I put it through Sweave, I get:
http://www.mayin.org/ajayshah/tmp/bugdemo.tex
which is, of course, a generic latex file which you can read and
2010 Jul 27
2
Documenting different OO-aproaches in R as a package?
Hello,
I see some people including myself confused by the different object-oriented
approaches in R (S3, S4, OOP, R.oo etc.).
Would it be ok to collect examples and solutions for the different OO-packages
in one package and add a vignette for documentation?
(assuming I find time for this task)
I mean in this case the package would not add data or functionality to R or
serve as a companion
2010 Jul 04
1
Fwd: Functional programming and R: Recommendations?
Hello R list members,
I have a good object-oriented programming and software engineering background
(mostly Java) and know some R.
I'd like to learn more about functional programming concepts and its support
and application in R. Do you have any recommendations (books, links etc)?
I read (and like) "Programming in Scala" (Odersky) and just ordered
"Funktionale
2007 Aug 22
3
rectify a program of seasonal dummies matrix
Hi friends,
I would like to construct a matrix of seasonal dummies with number of rows (observations)=100. such matrix is written as follows:[1 0 0 0;0 1 0 0;0 0 1 0;0 0 0 1;1 0 0 0;0 1 0 0;0 0 1 0;0 0 0 1;etc...] . I wrote the following program:
T=100
br=matrix(0,T,4)
{
for (i in 1:T)
for (j in 1:4)
if i==j
br[i,j]=1
if else (abs(i-j)%%4==0
br[i,j]=1
else
br[i,j]=0
}
z<-br
z
but
2008 Jan 23
6
Two-way non-parametric ANOVA?
We need a two-way non-parametric ANOVA in order to analysis properly some
ecological data, do you know any reference in R? or how to do it?
Thank you very much
All the best
diana
--
View this message in context: http://www.nabble.com/Two-way-non-parametric-ANOVA--tp15039308p15039308.html
Sent from the R help mailing list archive at Nabble.com.
2007 Oct 08
2
as.ordered
Hello Members,
I try to convert variables in a data.frame (bract.awn) in the class
ordered.
str(bract.awn)
'data.frame': 348 obs. of 2 variables:
$ bracts.length.relative.to.flower...............Min: Factor w/ 4
levels "1","2","3","4": 2 3 3 3 3 2 1 4 3 2 ...
$ bract.awn.relative.to.body.................Max : Factor w/ 4
levels
2001 Nov 07
3
Examples for Markov Chain in Economics
Could anyone tell me where can I find some examples of the applications
to economics of a Markov chain?
Many thanks in advance.
Luis Rivera.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not
2013 Sep 05
2
binary symmetric matrix combination
Hi,
May be this helps:
m1<- as.matrix(read.table(text="
y1 g24
y1 0 1
g24 1 0
",sep="",header=TRUE))
m2<-as.matrix(read.table(text="y1 c1 c2 l17
?y1 0 1 1 1
?c1 1 0 1 1
?c2 1 1 0 1
?l17 1 1 1 0",sep="",header=TRUE))
m3<- as.matrix(read.table(text="y1 h4??? s2???? s30
?y1 0 1 1 1
?h4 1 0 1 1
?s2 1 1 0 1
?s30 1 1 1
2010 Dec 29
2
\VignetteKeywords{}, for KEYWORDS or for free-tagging?
Hi R-devel,
[Question]:
* Is there a KEYWORDS file to lookup 'keywords' to supply
the vignette command, '\VignetteKeywords{}'?
-or, is the pkg writer free to tag the vignette using any
keywords he/she chooses? i.e., free-tagging.
Thank you,
+ Elliot Kleiman
__________________________
San Diego State University
http://www.sdsu.edu/
2009 Feb 12
9
df -k takes too long only at random times
How do I find out why df -k is taking soo long to respond only sometimes?
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
2007 Sep 24
7
zfs chattiness at boot time
Hi all,
I recently started seeing zfs chattiness at boot time: "reading zfs config"
and something like "mounting zfs filesystems (n/n)".
Is this really necessary? I thought with SMF the times where every script
announced its'' existance had gone (and good thing, too).
Can''t we print something only if it goes wrong?
Michael
--
Michael Schuster
Recursion,
2006 Jul 27
6
Getting stucked with Debian
Hello all,
I''m getting stucked with debian and Xen 3.0.2
Problem is that during boot with xen kernel system said:
mount: unknown filesystem ''devfs''
and then
Unable to open initial console /dev/console
And reboot...
How can I solve? googled for some information but nothing usefull..
Thanks
Stefano
--
Ste
Visit: http://www.stefanocislaghi.it/
2017 Aug 14
1
Statistical / data mining methods in R and not in SAS?
Hi, and sorry for asking such an unspecific question.
Does anybody know of statistical / data mining methods that are available in R
that are not in SAS ? With SAS I mean the SAS System Version 9.4 and SAS
Enterprise Miner. I don't expect a complete list, just two or three examples
or hints where and what to look for.
I found some older comparisons, and the R methods mentioned there
2007 Nov 25
7
Massive problems with ''PCI-DMA: Out of SW-IOMMU space for XXX bytes [..]'' with 3Ware controller
Hi list,
this days I''ve tried to update a 32bit XEN 3.0.4 system (kernel 2.6.16) to
XEN 3.1.2 on AMD64 (kernel 2.6.18). The system has 2GB RAM and a 3ware
9500-12 SATA raid controller.
The old system worked fine for about half a year now.
The new system boots fine so far but when doing some "bigger" changes to the
filesystem I get a lot of this errors:
> PCI-DMA: Out of
2010 Sep 04
7
Why pv-on-hvm drivers?
Hi list,
I''ve read about recent efforts to push pv-on-hvm drivers to Linux mainline
and I''m curious to know the cause for this. What''s the advantage over using
pv_ops directly and booting the kernel paravirtualized?
Are there plans to move Linux domUs closer to the KVM way (from an
architectural point of view)?
Hope you can help.
Regards,
Markus
2017 May 19
2
[GlobalISel][AArch64] Toward flipping the switch for O0: Please give it a try!
On 18 May 2017 at 19:09, Quentin Colombet <qcolombet at apple.com> wrote:
> Hi Diana,
>
>> On May 18, 2017, at 1:15 AM, Diana Picus <diana.picus at linaro.org> wrote:
>>
>> On 18 May 2017 at 09:06, Kristof Beyls <Kristof.Beyls at arm.com> wrote:
>>> I think Diana found that when enabling r299283, the bootstrap failed with
>>> llvm-tblgen
2017 May 18
2
[GlobalISel][AArch64] Toward flipping the switch for O0: Please give it a try!
On 18 May 2017 at 09:06, Kristof Beyls <Kristof.Beyls at arm.com> wrote:
> I think Diana found that when enabling r299283, the bootstrap failed with
> llvm-tblgen segfaulting.
> So there clearly is some work required there.
Indeed.
@Quentin, what is the status of that patch? Have you been working on
it since then? Should I investigate the segfault more and send you a
reproducer?
2017 May 22
2
[GlobalISel][AArch64] Toward flipping the switch for O0: Please give it a try!
Hi Quentin,
I actually did a run with -mllvm -optimize-regalloc -mllvm
-regalloc=greedy over the weekend and the test does pass with that.
Haven't measured the compile time though.
Cheers,
Diana
On 19 May 2017 at 19:06, Quentin Colombet <qcolombet at apple.com> wrote:
> Hi Diana,
>
> On May 19, 2017, at 1:33 AM, Diana Picus <diana.picus at linaro.org> wrote:
>
>