[R] Regarding pp.plot(){CircStats}

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Apr 25 09:17:48 CEST 2002


Ravi Malayambakkam-n <rmalayam at ic.sunysb.edu> writes:

> 	      [message needed manual approvement:
> 	       it had a single line "help"  -- MM ]
> 
> I have a table containing two columns and some 600 rows.  The first column 
> is a time series in the sense contains the amount of time the model that i
> am studying stays in a particular state(ie sojourn time).  I 
> extract the contents of the table using read.table. and extract the
> first column from the table as follows.
> 	ft <-read.table(<filename>)
> 	firstcol <-ft[1].
> When I pass firstcol as a parameter to pp.plot(firstcol) I get the 
> following error :
> Error in if (abs(term) < acc) flag <- "false" : 
>          missing value where logical needed
>  
> Can anyone tell me where the mistake is.

Haven't tried pp.plot, but I would guess that it is because ft[1] is a
*data frame* with one column. Try ft[[1]] to get the column vector
itself. 

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list