Note that there are some explanatory texts on larger screens.

plurals
  1. POWhere is the .R script file located on the PC?
    primarykey
    data
    text
    <p>I want to find the location of the script .R files which are used for computation in R. </p> <p>I know that by typing the object function, I will get the code which is running and then I can copy and edit and save it as a new script file and use that.</p> <p>The reason for asking to find the foo.R file is</p> <ol> <li>Curiosity</li> <li>Know what is the algorithm used in the numerical computations</li> <li>More immedietly, the function from <em>stats</em> package I am using, is running results for two of the arguments and not the others and have to figure out how to make it work. Error shown by R implies that there might be some modification required in the script file. </li> </ol> <p>I am looking for a more general answer, if its possible. </p> <p><strong>Edit</strong>: As per the comments so far, here is the code to compute spectrum of a time series using autoregressive methods. The data input is a univariate series.</p> <pre><code>x = ts(data) spec.ar(x, method = "yule-walker") 1 spec.ar(x, method = "burg") 2 </code></pre> <p>command 1 is running ok. command 2 gives the following error. </p> <pre><code>Error in ar.burg.default(x, aic = aic, order.max = order.max, na.action = na.action, : Burg's algorithm only implemented for univariate series </code></pre> <p>I did try specify all the arguments correctly like na.action=na.fail, order.max = NULL etc but the message is the same. Kindly suggest possible solutions.</p> <p>P.S. (This question is posted after searching the library folder where R is installed and zip files which come with packages, manuals, and opening .rdb, .rdx files)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload