Dear Catalin,
If you have an R function that plots a fragment of your data and takes the
specific fragment selection as parameter, you can readily turn this into a
Shiny app. The slider control (see example in
http://rstudio.github.com/shiny/tutorial/#sliders) in Shiny can be animated
(you can hav
Hi Neal,
Notice that c(2, 3) gets replicated into c(2, 3, 2, 3, 2, 3) and then
multiplied by column. This is not the same as multiplying each column by
the respective element in vector c(2, 3).
Andrius
2012/12/30 Neal H. Walfield
> At Sun, 30 Dec 2012 18:26:45 +0800 (CST),
> meng wrote:
> >
>
Hi Meng,
A one-liner would be
dat*rep(z, each=nrow(dat))
Cheers,
Andrius
2012/12/30 meng
> hi all:
> Here's a dataframe(dat) and a vector(z):
>
> dat:
> x1 x2x3
> 0.2 1.2 2.5
> 0.5 2 5
> 0.8 3 6.2
>
> > z
> [1] 10 100 100
>
> I wanna do the following:
> 10*x1,100*x2
3 matches
Mail list logo