[R] incompatible dimensions error

2020-08-24 Thread Andrew Halford
Hi Listers Using mvpart to run a MV regression tree with PCA= TRUE to get a PCA plotted with sites coloured according to the tree output. Unfortunately it wont produce the PCA, instead giving the error message.. Error in cor(xall, xx[order(tree$where), ]) : incompatible dimensions. However, whe

Re: [R] Export R outputs to SAS dataset

2020-08-24 Thread Daniel Nordlund
It is still not clear to me (1) if you just want the printed output in your SAS list file, or (2) if you want the actual numerical results returned to SAS so that you can do more manipulation with the numbers. If (1) you can precede your R code with sink() to output to your SAS list file  #-

Re: [R] Classification Tree Prediction Error

2020-08-24 Thread Bert Gunter
Purely statistical questions -- as opposed to R programming queries -- are generally off topic here. Here is where they are on topic: https://stats.stackexchange.com/ Suggestion: when you post, do include the package name where you get tree() from, as there might be more than one with this functi

[R] Classification Tree Prediction Error

2020-08-24 Thread Xu Jun
Dear all R experts, I have a question about using cross-validation to assess results estimated from a classification tree model. I annotated what each line does in the R code chunk below. Basically, I split the data, named usedta, into 70% vs. 30%, with the training set having 70% and the test set

Re: [R] [External] rNOMADS package

2020-08-24 Thread William Dunlap via R-help
Add the arguments type="source" and repos=NULL to your call to install.packages(). repos=NULL means that this is a local file, not something to download from a repository. Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Aug 24, 2020 at 8:31 AM Richard M. Heiberger wrote: > > incorrect doub

Re: [R] [External] rNOMADS package

2020-08-24 Thread Richard M. Heiberger
incorrect double slash c:// use single slash c:/ On Mon, Aug 24, 2020 at 11:21 Philip wrote: > I am struggling to install a fix for the rNOMADS package which reads > National Weather Service data. I copied the fix (rNOMADS_2.5.0.tar.gz) > from an email to a local drive and then tried to install

[R] rNOMADS package

2020-08-24 Thread Philip
I am struggling to install a fix for the rNOMADS package which reads National Weather Service data. I copied the fix (rNOMADS_2.5.0.tar.gz) from an email to a local drive and then tried to install it with the command below. I also tried installing it without the .tar.gz extension and without t

Re: [R] Help on plot from transition matrix

2020-08-24 Thread Jim Lemon
Hi Luis, As so often happens, the image didn't make it. Try PNG or PDF format. Without seeing what you want, it's only guessing. Jim On Mon, Aug 24, 2020 at 6:34 PM Luis Fernando García wrote: > > I am wanting to make a flow diagram like the one attached as an example for > the given dataset. >

[R] Help on plot from transition matrix

2020-08-24 Thread Luis Fernando García
I am wanting to make a flow diagram like the one attached as an example for the given dataset. The idea is to plot a flow diagramm using the probabilities given by a transition matrix like the displayed in the example below. I have found some tools like DiagrammeR which might work for this purpose