similar to: Programming puzzle...

Displaying 20 results from an estimated 800 matches similar to: "Programming puzzle..."

1997 Oct 14
1
R-beta: Private libraries
This must be a simple question but I could not find anything under the FAQ... so here goes. I am currently working on a (quite specific) set of functions I would like to place in a library. But: I'd like to keep this separate from the R source and CRAN libraries. Is there a global variable so that R searches also other directories for sources when installing libraries? BTW, this can also be
2000 Jul 17
0
Réf. : image legend
I would also be very much interested in having the image.legend function in R. The Splus image.legend uses the subplot function, which doesn't seem to be available in R, so one can't copy the Splus function to R (otherwise it would probably have been done already). I greatly appreciate the flexibility of the Splus image.legend function since it allow you to put the legend where
1997 Jun 04
0
R-beta: save.plot and piecharts
Hi all, I am not sure if someone else noticed this as well, but the combination of piechart plots and save.plot does not work correctly. The labels and tickmarks are plotted OK, but the piechart itself is placed somewhere else in the figure (when using colors) or not visible at all (if not filled). The combination with postscript("...") works, though. Two small thingies concerning pie
1998 Jan 27
0
R-beta: help in rsept
Is it possible to get information on libraries or data sets in R for windows? E.g. under Unix I would type ?library(whatever)... I have made some simple functions for teaching and spent hours writing the documentation for my students who now may not even be able to read it... aarghh Apologies if this is a FAQ, couldn't find anything on it in the archives. Ron
1999 May 07
0
R-0.64.0 on SUN
When I try to install R-0.64.0 on my SUN ( > uname -a SunOS ac6 5.7 Generic sun4u sparc SUNW,Ultra-5_10 ) I get after "./configure --disable-readline" and "gmake" the following errors: gcc -O2 -I../include -I../../src/include -c saveload.c -o saveload.o In file included from /usr/include/sys/tiuser.h:18, from /usr/include/tiuser.h:17,
2003 Jul 24
1
pls regression - optimal number of LVs
Dear R-helpers, I have performed a PLS regression with the mvr function from the pls.pcr package an I have 2 questions : 1- do you know if mvr automatically centers the data ? It seems to me that it does so... 2- why in the situation below does the output say that the optimal number of latent variables is 4 ? In my humble opinion, it is 2 because the RMS increases and the R2 decreases when 3 LVs
2002 Feb 14
1
Subsets in mclust
Dear group, I want to use the mclust package on large data, and therefore I want to use a subset in the initial clustering phase. From help(mclust): k: If `k' is specified, the hierarchical clustering phase will use a sample of size `k' of the data in the initial hierarchical clustering phase. The default is to use the entire data set. m2 is a
2003 Sep 11
3
Rgui access violation
Dear All; While using EMclust() in the mclust package, I frequently encountered a program error. A message window popped up with the message " Rgui.exe has generated errors and will be closed by Windows. You will need to restart the program. An error log is be created." > version _ platform i386-pc-mingw32 arch i386 os mingw32
2002 Apr 15
6
two questions
The first: if I have a vector as (1,1,3,2,1,1), which is the command that gives all the positions of the min value? From the vector of the example a would like to obtain a new vector as (1,2,5,6) that give me all the positions of the minimum value 1. The second: if I have a matrix "A" and I want to obtain a new matrix deleting a column or a row of A, what have I to do? Thank you.
2003 Jan 14
3
PLS regression?
Hi all, I would like to do some QSAR analysis (quantitative structure activity relationship). I need to use some Partial Least Squares (PLS) regression, but I have not seen this option on the R-project. Is it possible to do this kind of regression on R? thank you in advance best regards, olivier [[alternate HTML version deleted]]
2002 Nov 02
2
Partial Least Squares
Hi everybody! Is there any package or functions to make Partial Least Squares analysis with R? Thanks a lot Luis -------------------------------------------- sapo.pt/kitadsl -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or
2004 Sep 12
2
Variable Importance in pls: R or B? (and in glpls?)
Dear R-users, dear Ron I use pls from the pls.pcr package for classification. Since I need to know which variables are most influential onto the classification performance, what criteria shall I look at: a) B, the array of regression coefficients for a certain model (means a certain number of latent variables) (and: squared or absolute values?) OR b) the weight matrix RR (or R in the De
2002 Sep 17
1
switch (PR#2033)
Full_Name: Ron Wehrens Version: 1.5.0 OS: Linux, Solaris, OSF alpha Submission from: (NULL) (128.95.17.61) Consider these two functions: switchme <- function(type, ...) { switch(type, E = max(...), V = length(...), EII = sum(...), VII = prod(...), -100) } switchme2 <- function(type, ...) { switch(type, V = length(...), EII
2001 Nov 10
0
Summary: Teaching with R a quick survey.
Hi I would like to start by thanking everyone that replied. Thank you for the information, and for the comments about how or why you use it and thankx for the encouragement re my talk.... Please note that I do not claim to have ellicited a reply from all users of R, this is a quick survey not a census. I have tried to break the responces down to the following categories: Where: (hopefully
2005 Mar 07
3
R crashes using the em function of package mclust (PR#7719)
Hi, I got the same problem like http://tolstoy.newcastle.edu.au/R/devel/04/11/1204.html R crashes when I use the em function from the mclust package on univariate data and on a special case on bivariate data (when the matrix is not provided as written in the manual). It seems as if the problem is the format of the data to be analyzed. Operating System: Windows XP (SP2) R version: R-2.0.1 The
1999 Oct 13
1
Q: sort a matrix by picking up columns?
Hi, I am wondering how to write a function which sorts a matrix by giving a vector of column numbers. Suppose we have a matrix (or data frame) "Mat" and I want to obtain order(Mat[,1], Mat[,3], Mat[,6,], Mat[,8], Mat[,10], Mat[,13]) in order to sort the matrix by those columns. Is there a way to write a function so that I can give a vector of the column numbers c(1,3,6,8,10,13) and do
2004 Jul 20
9
Sort a data frame
Hi all I have the next data frame year STOD SLAGNR TAL TALT TALVEKT 1 2002 2120006 57 1 NA 1 2 1997 97030032 57 NA NA NA 3 1997 97030071 27 1 NA NA 4 1997 97030005 57 1 NA NA 5 1997 97020127 60 NA 1 NA 6 2001 1160025 27 1 NA 1 7 1998 98020069 60 1 NA NA 8
2017 Dec 01
1
pls in r
Hello, I am a beginner in R, and I wonder if anyone could help me with a partial least square regression in R. I have looked up the instructions and the manual from Bjorn Mevi and Ron Wehrens. However, I think I managed to write the script correctly, but I dont understand the output on the R environment, and also how to decide on the number of components to use (from the RMSEP), and also how to
2013 Jul 24
1
Help to improve prediction from supervised mapping using kohonen package
I would really like some or any advice on how I can improve (or fix??) the following analysis. I hope I have provided a completely runnable code - it doesn't produce any errors for me. The resulting plot at the end shows a pretty poor correlation (just speaking visually here) to the test set. How can I improve the performance of the mapping and prediction? Here are some of the data
2003 May 28
1
Numbers that look equal, should be equal, but if() doesn't see as equal (repost with code included)
Hi! Apologies for sending the mail without any code. Apparently somewhere along the way the .R attachments got filtered out. I have included the code below as clean as possible. My original mail is below the code. Thank you again for your time. regards, Paul vincentize <- function(data, bins) { if ( length(data) < 2 ) { stop("The data is really short. Is that ok?"); }