Displaying 6 results from an estimated 6 matches for "danielepippo".
2011 Feb 18
4
Matrix in R
Hi everyone,
   I'm building a matrix in R with a cycle for like this:
pp_ris2=matrix(NA,6,6)
for(i in 0:6){
	for(j in 0:6){
		if(i>j){
		pp_ris2[i,j]=myfunction}
	else if(i==j){
		print(c(i,j))
		pp_ris2[i,j]=myfunction}
	
}}
but the result is:
      [,1]     [,2]     [,3]    [,4]   [,5]    [,6]
[1,] 0.062   NaN    NaN    NaN   NaN   NaN
[2,] 0.083  0.022   NaN    NaN   NaN   NaN
[3,]
2011 Aug 21
3
Sweave doesn't work
Hi R users.
I've got a problem in producing the pdf file from Latex with R code. When I
run the code Sweave("example.Rtex") in R it seems working, but when I run
the Latex file it doesn't. The code error shown to me is below:
 
*Runaway argument?
{echo=FALSE}
data<- read.csv("C:\\Users\\Daniele\\Desktop\\dati\\dati_england
! File ended while scanning use of \FV at
2011 Aug 19
2
R and Sweave
Hi everybody.
 I'm trying to use R with Sweave but I have a problem perhaps with the
directory path of sweave in R.
The windows path is this:
C:\Program Files (x86)\R\R-2.9.2\share\texmf\Sweave
When I run the latex file with R, the program works well, without any
errors, but when I create the pdf file, the Scode doesn't work. I think the
problem is about the path.
Can anybody suggest to
2011 Feb 19
1
Joiny probability with R
Hi,
    I have two vector with the marginal distribution like this:
> a
[1] -0.419 -0.364 -0.159 -0.046 -0.010 -0.002  0.000  0.000  0.000
> b
[1] 0.125 0.260 0.270 0.187 0.097 0.041 0.014 0.004 0.001
How can I calculate the joint distribution with R?
Thank you to all
Dan
-- 
View this message in context: http://r.789695.n4.nabble.com/Joiny-probability-with-R-tp3314059p3314059.html
Sent
2011 Mar 22
1
Problem with plot histogram
Hi R-users,
    
    I'm trying to built a plot of two series of data, but thees series
result "superimposed". The R-code is like this:
goal <- c(125, 143, 81, 26, 2, 3) 
numgoal <- 0:5 
lambda <- sum(goal*numgoal)/sum(goal) 
plot(numgoal, goal, type="h") 
x <- 0:5
y<-dpois(x, lambda)  
att<-y*380 
lines(x,att, type="h", col="red") 
2011 Mar 21
2
Exponential distribution
Dear R-users,
     I have to plot a exponential distribution like the plot in the pdf 
attached. I've write this code but I don't know how to draw the two lines..
Can anyone help me please?
Thank you very much
Pippo http://r.789695.n4.nabble.com/file/n3394476/exponential_smoothing.pdf
exponential_smoothing.pdf 
--
View this message in context: