search for: socgen

Displaying 12 results from an estimated 12 matches for "socgen".

2003 Jun 06
3
writing comments within a function
Hi R lovers! I would like to know how you can write comments inside the code of a function is it latex style % ? or any other language style? thanks a lot ************************************************************************* Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute
2003 Apr 25
3
Code bug unresolved involving if condition
Hi R lovers! I am a beginner in coding with R so my question may be very easily solved but I don't know how. I have written the following function in a .txt file ClearDelta <- function(Matrix) { ncol<-ncol(Matrix);nrow<-nrow(Matrix); for (i in 1:nrow) { for (j in 1:(ncol-1)) {if (Matrix[i,j]==NA) (NA->Matrix[i,j+1])} }
2003 Apr 28
0
Re: [R Thanks for help Writing a function
...-----------------------------------------------------------------------------------------------------------------------------| | | | To: Vincent STOLIAROFF/fr/socgen at socgen | | cc: r-help at stat.math.ethz.ch | | Subject: Re: [R] Writing a function...
2005 May 20
3
constrained optimization
Hello, I've got to compute a minimization equation under an equality constraint (Min g(x1,x2,x3) with x1+x2=const). The Constroptim function does not authorize an equality condition but only inequality conditions. Which function can I use instead? Thank you very much for your help. Gael Robert - +33 1 42 14 27 96 ****************************************************************** This
2003 Jun 24
2
R and Latex's tables
Hi R lovers! I have discovered recently that graph can be exported from R in a Latex compatible file thanks to the pictex command I would like to know if there is the equivalent while exporting datas. Let's say I have a matrix, a data.frame or a list that I would like to export as a flat text file that is immediatly transcripted into a table into latex Is there a macro or package that could
2003 Apr 24
3
Missing Value And cor() function
Hi r lovers! I 'd like to apply the cor() function to a matrix which have some missing values As a matter of fact and quite logically indeed it doesn't work Is there a trick to replace the missing value by the mean of each variable or by any other relevant figures ? Or should I apply a special derivate of the cor() function, (I don't have any idea if it exists and have some trouble to
2003 Apr 28
2
Writing a function
Hi r lovers, I have written the following function > ClearDeltaBis function(Matrix){ for (i in 1:3) { for (j in 1:2) {if (is.na(Matrix[i,j])) NA->(Matrix[i,j+1])} } Matrix } it looks correct but when I try to implement it on the MatCor Matrix I get this error message >
2003 Jun 05
4
counting missing values
Hello R lovers I have written a little cute function to count the number of missing value per row in a matrix and return the percentage of missing value it takes a lot of time to run with a 1000 rows matrix I'd like to know if there is a function already implemented to count the number of occurence of a given values in a vector For information, here is the function count<-0 for (i in
2003 Jul 15
3
clearing some part of a graph
Hi R lovers 2 questions: 1) I'd like to know how to clean the title, the sub title or the labels of a graph. I know how to redefine it with the function title() but it overwrites the previous title and do not replace it 2) How could I clear a whole plot (for example in a multiple figure environment) thanks for your help vincent
2003 Jul 25
5
named list 'start' in fitdistr
Hi R lovers! I'd like to know how to use the parameter 'start' in the function fitdistr() obviously I have to provide the initial value of the parameter to optimize except in the case of a certain set of given distribution Indeed according to the help file for fitdistr " For the following named distributions, reasonable starting values will be computed if `start'
2003 Jun 02
1
authorized characters and symbols
Hi R lovers Obviously I cannot use the underscore "_ " character to name an object in R Is there a special reason for that ? I want to use it to rename a function maybe the problem is due to the nature of the object I work on thanks for any comments on that very little and not very bothering trouble ************************************************************************* Ce
2000 Feb 29
0
Smab Installation
Hi, I have installed samba on one of my Unix server( SUN) and I am trying to access the share directory from a NT workstation. Earlier If I had used a guest account and I was able to connect to the share created on the Unix server. Now I want to access with users / groups through NT domain server which I received the following error : The account is not authorized to login from this