[R] how use pvmnorm

2010-03-15 Thread Inchallah Yarab
Hi, I wante to use the distribution function of a bivariate normal distribution . i had find the function pvmnorm in the package" mvtnorm" when i try to use it, don't understand how read results: i had the pdf expliner for the function: for example i want to calculate N 2(S,X, cov) i had the

[R] Re : error matrix, cross table,

2009-08-26 Thread Inchallah Yarab
Hi see ?table i hope that helps!! inchallah De : dalposso À : r-help@r-project.org Envoyé le : Mercredi, 26 Août 2009, 1h20mn 31s Objet : [R] error matrix, cross table, how to create a cross table to quantify the classes of two thematic maps? -- View this

[R] Thank you David : Re : Odp: Re : Odp: Re : table function

2009-08-26 Thread Inchallah Yarab
, at 6:25 AM, Inchallah Yarab wrote: > [[elided Yahoo spam]] >> [[elided Yahoo spam]] >> [[elided Yahoo spam]] > > ?table > ?xtab I read this incorrectly. Try instead; > by(z, z.c, sum) z.c: 0 - 1000 [1] 1010

[R] Re : Odp: Re : Odp: Re : table function

2009-08-25 Thread Inchallah Yarab
t gives me this error  message: > >  [0 - 1000] [1000 - 3000]        >3000 > >            0            0      > >      0 > > Warning message: > > In inherits(x, "factor") : NAs intr

[R] table, sum, cat function

2009-08-25 Thread Inchallah Yarab
Hi, the second step in my exercice is to calculate the sum of the amout for each class et not the frequency i have this vector x   y 1  100 2  1500 3  3250 4  6250 5  2000 6   450 i want to use the function table and cat to calculate t

[R] Re : Odp: Re : table function

2009-08-25 Thread Inchallah Yarab
; Thank you > > > > De : Marc Schwartz > > Cc : r-help@r-project.org > Envoyé le : Lundi, 24 Aoűt 2009, 18h33mn 52s > Objet : Re: [R] table function > > On Aug 24, 2009, at 10:59 AM, Inchallah Yarab wrote: > > > hi, &

[R] table function

2009-08-25 Thread Inchallah Yarab
Cc : r-help@r-project.org Envoyé le : Lundi, 24 Août 2009, 18h33mn 52s Objet : Re: [R] table function On Aug 24, 2009, at 10:59 AM, Inchallah Yarab wrote: > hi, > > i want to use the function table to build a table not of frequence (number of > time the vareable is repeated in a lis

[R] Re : table function

2009-08-25 Thread Inchallah Yarab
Cc : r-help@r-project.org Envoyé le : Lundi, 24 Août 2009, 18h33mn 52s Objet : Re: [R] table function On Aug 24, 2009, at 10:59 AM, Inchallah Yarab wrote: > hi, > > i want to use the function table to build a table not of frequence (number of > time the vareable is repeated in a lis

[R] table function

2009-08-24 Thread Inchallah Yarab
hi, i want to use the function table to build a table not of frequence (number of time the vareable is repeated in a list or a data frame!!) but in function of classes I don t find a clear explnation in  examples of  ?table !!! example x      y    z 1    0   100 5    1   1500 6   

[R] multiple linear regression

2009-08-21 Thread Inchallah Yarab
Good morning, I want to make a linear regression of a variable fuction of  two variables y = a1 x1 + a2 x2 + c I found the function lm (y ~ x)  but it used  for a simple linear regression, but for  multiple regression i do not know which function do this!!  Can you help me please!!  Thank y

[R] what is the meaning of this error

2009-08-20 Thread Inchallah Yarab
Error in Math.factor(c(2L, 1L, 1L, 1L, 1L, 3L, 1L, 1L, 1L, 1L, 1L, 1L,  :   log not meaningful for factors In addition:Warning messages: 1: In Ops.factor(LRUpBound, LRLowBound) : * not meaningful for factors 2: In Ops.factor(TransitCoefStdDev, TransitCoefMean) :   / not meaningful for factors

[R] Tr : create a table in the console!!

2009-08-18 Thread Inchallah Yarab
- Message transféré De : Inchallah Yarab À : r-help@r-project.org Envoyé le : Mardi, 18 Août 2009, 16h26mn 20s Objet : create a table in the console!! HI I want to do a table with R (in the console) GWP_Max NumberOfPolicies No_GWPMax 8 [0-1000] 4 [1000-3000] 3 [> 3000] 5

[R] create a table in the console!!

2009-08-18 Thread Inchallah Yarab
HI I want to do a table with R (in the console) GWP_Max NumberOfPolicies No_GWPMax 8 [0-1000] 4 [1000-3000] 3 [> 3000] 5 i begin by calculate the number of policies in each class :  Data1 <- read.csv2("c:/Total1.csv", sep=",") > Data2 <- read.csv2("c:/GWPMax1.csv",sep=",")[1:20,1:2] > M <

[R] function merge()

2009-08-18 Thread Inchallah Yarab
Hi, Actually, i use the function merge like this: (Data1 <- Data1[1:7,1:3])   Policy.Number AXA.Entity Country 1    106077    BNL BNL 2   4001023 CH BNL 3    106006 UK BNL 4   4001025 CH BNL 5  6.00E+13    USA BNL 6   610

[R] number in R

2009-08-18 Thread Inchallah Yarab
omeone has an idea please? Thank you very much for your help!!! Inchallah Yarab [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] number 6 e+13

2009-08-18 Thread Inchallah Yarab
omeone has an idea please? Thank you very much for your help!!! Inchallah Yarab [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Browser and Debug?

2009-08-13 Thread Inchallah Yarab
Hi, Someone can explain to me how use Browser and Debug ? thank you [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-pro

[R] resolved Re : for(variable in [])do

2009-08-13 Thread Inchallah Yarab
thank you very much Allan it works!! De : Allan Engelhardt Cc : r-help@r-project.org Envoyé le : Jeudi, 13 Août 2009, 10h10mn 14s Objet : Re: [R] for(variable in [])do On 13/08/09 08:55, Inchallah Yarab wrote: > [...] >> for (LRPhase 

[R] for(variable in [])do

2009-08-13 Thread Inchallah Yarab
In this code i try to calculate le difference between too number for two value of  th variable phase i have did this > (output <- read.csv2("C:/RM2Param.csv",sep=","))   OptimYear LRPhase   PriorLRPosition  OptimPosition 1  2009  -1  1.15641679414676  0.252662968666702 2  2009   

[R] to extract a section of the matrix

2009-08-12 Thread Inchallah Yarab
HI, i have this matrix and i want to extract  a section of the matrix which present the first and second value of optim position:    OptimYear    LRPhase  PriorLRPosition     OptimPosition    LRPosition   5  2009    

[R] Re : Re : Zoo and numeric data

2009-08-12 Thread Inchallah Yarab
Thank you Gavin very much for this explication!!! inchallah yarab De : Gavin Simpson Cc : r-help@r-project.org Envoyé le : Mercredi, 12 Août 2009, 14h50mn 37s Objet : Re: [R] Re : Zoo and numeric data On Wed, 2009-08-12 at 10:03 +, Inchallah Yarab

[R] Re : paste first row string onto every string in column

2009-08-12 Thread Inchallah Yarab
2,] "DPA1* 103" "DPA1* 103" "DPB1* 301" "DPB1* 402" > (data2 <- rbind(C,data1)) V1    V2    V3    V4 1 DPA1* DPA1* DPB1* DPB1* 2 DPA1* 103 DPA1* 104 DPB1* 401 DPB1* 601 3 DPA1* 103 DPA1* 103 DPB1* 301 DPB1* 402 >

[R] Re : Zoo and numeric data

2009-08-12 Thread Inchallah Yarab
why you don't use read.csv2 (you save your file.csv) and you write read.csv2("path file",sep=",") hope this helps De : Mark Breman À : r-h...@stat.math.ethz.ch Envoyé le : Mercredi, 12 Août 2009, 10h46mn 43s Objet : [R] Zoo and numeric data Hi, I have a csv

[R] Re : paste first row string onto every string in column

2009-08-12 Thread Inchallah Yarab
quot;DPA1* 103" "DPA1* 103" "DPB1* 301" "DPB1* 402" > (data2 <- rbind(C,data1)) V1    V2    V3    V4 1 DPA1* DPA1* DPB1* DPB1* 2 DPA1* 103 DPA1* 104 DPB1* 401 DPB1* 601 3 DPA1* 103 DPA1* 103 DPB1* 301 DPB1* 402 >

[R] error in names

2009-08-11 Thread Inchallah Yarab
Hi, what is meaning this errors !!! Error in names(o.pr)[p.ok] <- names(qs) :   incompatible types (from NULL to character) in subassignment type fix In addition: Warning message: In Ops.factor(from, (0:(length.out - 1)) * by) :   + not meaningful for factors thank you very much

[R] Re : How to Import Excel file into R 2.9.0 version

2009-08-11 Thread Inchallah Yarab
i advice you to save the file under csv and then use read.csv2("c:/file.csv",sep=",") hope that helps!!! inchallahyarab 2009/8/11 rajclinasia > > Hi Every one, > I have a problem with Reading Excel file into R 2.9.0 version. In older > versions it is working with "xlsReadWrite" package. But

[R] how use cat() function?

2009-08-10 Thread Inchallah Yarab
i  want to print in the console and to have an excel file like this no_GWP    NbOfPolicyClass1[0-1000] NbOfPolicyClass2[1000-3000]    NbOfPolicyClass3[> 3000] No_GWPMax=8NbpolicyClass1=5   NbpolicyClass2=4    NbpolicyClass3 =3 

[R] Re : extraction of elements in a matrice???

2009-08-10 Thread Inchallah Yarab
Thank you Peter it works!!! À : r-help@r-project.org Envoyé le : Lundi, 10 Août 2009, 16h13mn 02s Objet : [R] extraction of elements in a matrice??? i have a matrice M and i want to extract only rows where GWP_Max is positif and smaller than 1000 but it is gi

[R] (sans objet)

2009-08-10 Thread Inchallah Yarab
i have written this in R, > data1 <- read.csv2("c:/Total1.csv",sep=",") > data2 <- read.csv2("c:/GWPMax1.csv",sep=",") > M <- merge(data1, data2, by.x = "Policy.Number", by.y = "Policy.Number") > nrow(data1) [1] 20 > nrow(M) [1] 12 > NbOfPolicyWithoutGWPMax <- nrow(data1)-nrow(M) > NbOfPolicyWit

[R] extraction of elements in a matrice???

2009-08-10 Thread Inchallah Yarab
i have a matrice M and i want to extract only rows where GWP_Max is positif and smaller than 1000 but it is given me this:!!!??? > M    Policy.Number   GWP_Max 1    4001023   500 2    4001025   700 3    4001028   600 4    4001062    2335.1 5    611  2000 6  

[R] calasification table under conditions

2009-08-06 Thread Inchallah Yarab
hi, i have a file with 49000 lines i want to do a classification in two tables suppose data <- read.csv2("c:/total.csv", sep=",") if the second colonne contains ( A,B,C,D)> tab1 if the second colonne contains ( E,F,G,H)> tab2 How can do this ? Thank you for your help

[R] delete lines

2009-08-06 Thread Inchallah Yarab
Hi , I need to write a function to delete a row if the value of one element of the row is negatif!!! I have a big file of data and i will check every lines!!! Any ideas Thank you !! [[alternative HTML version deleted]] __ R-help@r-p

[R] Re : opration / dates in R (it is ok thanks)

2009-08-06 Thread Inchallah Yarab
i found it it is the function difftime(date1,date2) thank you gays!!! De : Peter Konings Envoyé le : Jeudi, 6 Août 2009, 11h44mn 09s Objet : Re: [R] opration / dates in R Hi, There are a number of possibilities. Check out the R wiki for an overview of the a

[R] opration / dates in R

2009-08-06 Thread Inchallah Yarab
Hi, how can i use operation + , - , / with veriable format DATES? for example i have two variable a <- 18/08/2008 and b <- 18/09/2010 and i want to calculate a-b ?? thank you? [[alternative HTML version deleted]] __ R-help@r-project.

[R] problem with r import data

2009-08-06 Thread Inchallah Yarab
Good moorning, yesterday, i asked for how we can import data into R i found that it is necessary to make the file in csv format then use L<- read.csv2("path of file") now i see that the dimension of my table importing into R is 1 colonne (i have realy 20) and (65) the number of all my lines

[R] import DATA

2009-08-05 Thread Inchallah Yarab
hi !! it is me again sorry but until now i don't found  how i can import data form excel to R? i have this message error read.table("c:/TOTAL.xls") V1 1 ÐÏ\021ࡱ Warning message: In read.table("c:/TOTAL.xls") :   incomplete final line found by readTableHeader on 'c:/TOTAL.xls' thank yo

[R] import data into R

2009-08-05 Thread Inchallah Yarab
Thank you Gabor Grothendieck for your answer !! i have charge the pachage but now i have this massage  read.table("c:/TOTAL.xls",h=T) [1] ÐÏ.à.. <0 rows> (or 0-length row.names) Warning messages: 1: In read.table("c:/TOTAL.xls", h = T) :   incomplete final line found by readTableHeader on 'c:/TOTA

[R] how import Excel data into R?

2009-08-05 Thread Inchallah Yarab
Hi I want to import Excel data into R I have used this code data<-read.table("C:\Total_Art_Policies.xls",header=TRUE,sep=";") i have an error msg: Erreur dans file(file, "r") : impossible d'ouvrir la connexion De plus : Warning message: In file(file, "r") : impossible d'ouvrir le fichier 'C:\

[R] Re : what meaning missing value True /False needed

2009-07-31 Thread Inchallah Yarab
Thank you SARAH De : Sarah Goslee rg> Envoyé le : Vendredi, 31 Juillet 2009, 15h21mn 50s Objet : Re: [R] what meaning missing value True /False needed You are far more likely to get helpful volunteers to answer your questions if you distill your problem down

[R] how can i delete a message in R-help?

2009-07-31 Thread Inchallah Yarab
Hi i need to delete a message that a send to r -help ?? Can you please tell me how? Thank you [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

[R] have the value of variable in a function

2009-07-31 Thread Inchallah Yarab
hi , i need to know the value of variable used in a function i don't know if it is easy to do??? thank you [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

[R] what meaning missing value True /False needed

2009-07-31 Thread Inchallah Yarab
This is my code i don't understand the error message: library(rgenoud) rm(list=ls()) set.seed(666) # # As a first step, it is assumed that all input parameters are independent of ageing : #

[R] what is the meaning of this error message?

2009-07-31 Thread Inchallah Yarab
Hi, I need your help :: what i the meaning of this error message"Missing value where true / false needed??" Thank you [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-he

[R] Re : vector thank you it works

2009-07-29 Thread Inchallah Yarab
I'm very impressed by the quick replies on the mailer. Thanks a lot for your > suggestions. They worked very well. De : Linlin Yan Cc : r-help@r-project.org Envoyé le : Mercredi, 29 Juillet 2009, 18h26mn 32s Objet : Re: [R] vector rep(A, each=2) On Thu, Jul

[R] vector

2009-07-29 Thread Inchallah Yarab
Hi , i have a vector A=(a1,a2,a3,a4) and i want to create another vector B=(a1,a1,a2,a2,a3,a3,a4,a4) !!! i know that it is simple but i begin with R so i nned your help!! thank you for your help !!! [[alternative HTML version deleted]] __

[R] help

2009-07-28 Thread Inchallah Yarab
How I can vary the parameters for a function? I have a function with 5 parameters I want to turn the function for a range of numbers for one of these parameters!! i want to have in the end the value of the function in the different cas of one of the paramter (the others paramters are fixes!!)

[R] vary paramter of a function

2009-07-28 Thread Inchallah Yarab
i have a function who depends of many parameters and i want to have at the end the result givien by this function for a different value of only one parameter the others parameters are fixed. thank you i didn't understand your answer peter  can you explain me? thank you [[alter

[R] vary the parameters for a function

2009-07-28 Thread Inchallah Yarab
How I can vary the parameters for a function? I have a function with 5 parameters I want to turn the function for a range of numbers for one of these parameters!! i want to have in the end the value of the function in the different cas of one of the paramter (the others paramters are fix