[R] Fw: modified mankendal

John Kane jrkrideau at yahoo.ca
Thu Nov 23 13:12:01 CET 2017


 Would you resubmit your question in plain text mode?  
This is a plain text list and the HTML gets stripped away. What is left is this
Hello DearI used modifiedmk package for trend analyses.this is my script
 require(modifiedmk)X1<-read.table("c:/elham/first article/r/Spring_NDVI-1.txt",skip=2,header=FALSE)d=dim(X1)
outMK<-matrix(-999,nrow=4,ncol=d[2])for (c in 1:d[2]){MK<-tfpwmk(X1[,c])outMK[1,c]<-getElement(MK,"S")outMK[2,c]<-getElement(MK,"Var(S)")outMK[3,c]<-getElement(MK,"Sen's Slope")outMK[4,c]<-getElement(MK,"P-value")} unfortunetally I got this error:
Error in if (S == 0) { : missing value where TRUE/FALSE needed
would you please help me to solve itSincerely yoursElham
It is very close to unreadable. You should read the posting guide at the bottom of each email. 
You might also find these links useful:
How to make a great R reproducible example? aka MCVE (Minimal, Complete, and Verifiable Example)


| 
| 
| 
|  |  |

 |

 |
| 
|  | 
How to make a great R reproducible example? aka MCVE (Minimal, Complete,...

When discussing performance with colleagues, teaching, sending a bug report or searching for guidance on mailing...
 |

 |

 |




    On Wednesday, November 22, 2017, 3:24:05 PM EST, Elham Fakharizade via R-help <r-help at r-project.org> wrote:  
 
 
 Hello DearI used modifiedmk package for trend analyses.this is my script
 require(modifiedmk)X1<-read.table("c:/elham/first article/r/Spring_NDVI-1.txt",skip=2,header=FALSE)d=dim(X1)
outMK<-matrix(-999,nrow=4,ncol=d[2])for (c in 1:d[2]){MK<-tfpwmk(X1[,c])outMK[1,c]<-getElement(MK,"S")outMK[2,c]<-getElement(MK,"Var(S)")outMK[3,c]<-getElement(MK,"Sen's Slope")outMK[4,c]<-getElement(MK,"P-value")} unfortunetally I got this error:
Error in if (S == 0) { : missing value where TRUE/FALSE needed
would you please help me to solve itSincerely yoursElham


  
    [[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.  
	[[alternative HTML version deleted]]



More information about the R-help mailing list