Re: [R] I have a problem in doing the scatterplot

2013-12-30 Thread arun
Hi, Try: tab1 <- read.table("132p1vs132p2",sep="\t",header=TRUE)  str(tab1) #'data.frame':    1765 obs. of  2 variables: # $ Sample_132p1: num  2.395 0 0.216 0 0.246 ... # $ Sample_132p2: num  2.428 0 0.247 0 0.136 ... plot(tab1$Sample_132p1,tab1$Sample_132p2,pch=20) fm <- lm(tab1$Sample_132p2~ta

Re: [R] I have a problem with R!!

2011-08-22 Thread David L Carlson
..@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Petr PIKAL Sent: Monday, August 22, 2011 3:18 AM To: nferr...@fceia.unr.edu.ar Cc: r-help@r-project.org Subject: Re: [R] I have a problem with R!! Hi Your code is rather baroque and it is difficult to see what is exactly going on wit

Re: [R] I have a problem with R!!

2011-08-22 Thread Petr PIKAL
Hi Your code is rather baroque and it is difficult to see what is exactly going on without having appropriate data. I does not consider your process of reading data from Excel problematic. Maybe the difference is in that d<- rnorm(whatever) produces vector while d<- read.delim("clipboard",

Re: [R] I have a problem with R!!

2011-08-21 Thread Jim Lemon
On 08/21/2011 05:29 AM, nferr...@fceia.unr.edu.ar wrote: Dear all i´m working with a program i´ve made in R (using functions that others created) to run my program i need a sample. if i generate the sample using for example, rnorm(n, mu, sigma) i have no problem but if i obtain a sample from

Re: [R] I have a problem with R!!

2011-08-20 Thread Rolf Turner
No, you don't have a problem with R. You have a problem with Excel. Solution: Don't use Excel. cheers, Rolf Turner __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http:

[R] I have a problem with R!!

2011-08-20 Thread nferreri
Dear all i´m working with a program i´ve made in R (using functions that others created) to run my program i need a sample. if i generate the sample using for example, rnorm(n, mu, sigma) i have no problem but if i obtain a sample from a column in excel and i copy it, the program says that ther

Re: [R] I have a problem

2010-07-31 Thread David Winsemius
On Jul 31, 2010, at 10:26 AM, 笑啸 wrote: dear£ºDavid Winsemius in the example£¨nomogram£©£¬I don't understand the meanings of the program which have been marked by comment line.And how to compile the program. R is an interpreted language. There is no compilation. You submit these l

[R] I have a problem

2010-07-31 Thread 笑啸
dear£ºDavid Winsemius in the example£¨nomogram£©£¬I don't understand the meanings of the program which have been marked by comment line.And how to compile the program.(L <- .4*(sex=='male') + .045*(age-50) +(log(cholesterol - 10)-5.2)*(-2*(sex=='female') + 2*(sex=='male'))). example(nom

[R] I have a problem

2010-07-31 Thread 笑啸
dear£ºDavid Winsemius in the example£¨nomogram£©£¬I don't understand the meanings of the program which have been marked by red line.And how to compile the program.(L <- .4*(sex=='male') + .045*(age-50) +(log(cholesterol - 10)-5.2)*(-2*(sex=='female') + 2*(sex=='male'))). n <- 1000 # de

Re: [R] I have a problem

2010-07-31 Thread David Winsemius
On Jul 31, 2010, at 6:29 AM, 笑啸 wrote: dear£º in the example£¨nomogram£©£¬I don't understand the meanings of the program which have been marked by red line. This is a plain text mailing list, hence no red line ... in fact no line at all. Use some other device such also outlining with

[R] I have a problem

2010-07-31 Thread 笑啸
dear£º in the example£¨nomogram£©£¬I don't understand the meanings of the program which have been marked by red line.And how to compile the program(L <- .4*(sex=='male') + .045*(age-50) + (log(cholesterol - 10)-5.2)*(-2*(sex=='female') + 2*(sex=='male'))). n <- 1000 # define sample size s