Displaying 20 results from an estimated 10000 matches similar to: "delete lines"
2009 Jul 31
3
how can i delete a message in R-help?
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]]
2009 Aug 17
4
number in R
Hi,
i export data from an csv file like this :
 Data <- read.csv2("c:/Art.csv",sep=",") # import data into R
> Data <- Data [1:5,1:5]# extracting the first 5 rows and columns
> Data
  Policy.Number AXA.Entity Country LoB ccy.data
1         6e+13        BNL     BNL   P      EUR
2         6e+13        USA     BNL   P      EUR
3         6e+13         UK     BNL  
2009 Aug 05
3
import data into R
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:/TOTAL.xls'
2: In if (!header) rlabp <- FALSE :
  the condition has
2009 Aug 10
3
how use cat() function?
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=8    NbpolicyClass1=5                   NbpolicyClass2=4                            NbpolicyClass3 =3              
i have do it like this:!!!
data1 <-
2009 Aug 06
2
problem with r import data
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 (655555) the number of all my lines in the excel file (i want to have only the 2600 lines in my table)
Also, when i say to do
2009 Aug 21
2
multiple linear regression
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 you in advance
      
	[[alternative HTML version deleted]]
2009 Aug 18
1
Tr : create a table in the console!!
----- Message transféré ----
De : Inchallah Yarab <inchallahyarab@yahoo.fr>
À : 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 
i begin by calculate the number of policies in each class :
 Data1 <-
2009 Aug 18
1
number 6 e+13
 
Hi,
i export data from an csv file like this :
 Data <- read.csv2("c:/Art.csv",sep=",") # import data into R
> Data <- Data [1:5,1:5]# extracting the first 5 rows and columns
> Data
  Policy.Number AXA.Entity Country LoB ccy.data
1         6e+13        BNL     BNL   P      EUR
2         6e+13        USA     BNL   P      EUR
3         6e+13         UK     BNL  
2009 Aug 05
3
how import Excel data into R?
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:\Total_Art_Policies.xls' : No such file or
2009 Aug 20
2
what is the meaning of this error
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
      
	[[alternative HTML version deleted]]
2009 Aug 06
2
opration / dates in R
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]]
2009 Aug 18
1
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 
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 <- merge(Data1,Data2, by.x =
2009 Aug 24
4
table function
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    1       1200 
2    2       500 
1    1       3500 
5     2     2000 
8     5     4500
i want to do a
2009 Jul 31
3
what is the meaning of this error message?
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]]
2009 Jul 31
1
what meaning missing value True /False needed
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 :
#########################################################
InputDim <-20
# Max number of ageings in the inputs 
CPIRate <- rep(0.02 , InputDim )
#
2009 Aug 10
2
(sans objet)
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)
>
2012 Jul 05
3
Histogram
I have a column of 1000 datapoints from the normal distribution with mean 2
and variance 4. How can I get a histogram of these observations with 20
bins with each bin having 50 observations?
-- 
Thanks,
Jim.
	[[alternative HTML version deleted]]
2011 Oct 17
2
Histogram for each ID value
I have a dataframe in the general format:
chr1 0.5
chr1 0
chr1 0.75
chr2 0
chr2 0
chr3 1
chr3 1
chr3 0.5
chr7 0.75
chr9 1
chr9 1
chr22 0.5
chr22 0.5
where the first column is the chromosome location and the second column is
some value. What I'd like to do is have a histogram created for each chr
location (i.e. a separate histogram for chr1, chr2, chr3, chr7, chr9, and
chr22). I am just
2012 Jan 12
1
Keep rows where a variable matches one item of a vector
How do I subset data to only keep those rows of a dataframe where a
variable's value matches one item of a vector.  For example, how do I keep
all of the rows (and all variables) where mydata$id equals one of the values
in keepid?  See below?
mydata <- NULL
mydata$id <- 1:30
mydata$value <- seq(from=1,to=100, length.out=30)
keepid <- c(6,10,12,13,19,25,26,27,28,29)
In other
2011 Dec 06
1
Problem with clusplot
Dear all
I'm trying to run a cluster analysis with R
Here are the commands:
mydata <- na.omit(matrix) # listwise deletion of missing
mydata <- scale(matrix) # standardize variables 
 fit <- kmeans(mydata, 8) # 8 cluster solution
 # get cluster means 
aggregate(mydata,by=list(fit$cluster),FUN=mean)
 # append cluster assignment
 mydata <- data.frame(mydata, fit$cluster)