# [R] Help with matching rows

From: gary engstrom <engstrom.gary_at_gmail.com>
Date: Wed, 20 Apr 2011 22:09:26 -0400

Please excuse my akwardness as I a new to R and computers, but would kindly appreciate help.
{

```a <- sample (1:10,100,replace=T )
b <-sample(10:20,100,replace=T)
c <- sample(20:30,100,replace=T)
d <- sample(30:40,100,replace=T)
e <- sample(40:50,100,replace=T)
```

}
```d1 <- a
d2 <- b
d3 <-c
d4 <- d
d5 <- e

```

data.frame(d1,d2,d3,d4,d5)
dd <- data.frame(d1,d2,d3,d4,d5)
dd
sd(d1)
summary(d1)
sd(d2)
summary(d2)
sd(d3)
summary(d3)

sd(d4)
summary(d4)
sd(d5)
summary(d5)
I am a beginner to R and am trying to learn statistical probability. I have started Dr. Levine and Dr Kerns books. So far from the usual sources, I haven't found the answers to the following questions and would greatly appreciate any assistance that anyone might kindly share. If I run this code, how do I look for duplicate rows and how can  I adjust the SD of the sample function to make the chances of a duplicate row occur more often ?
How do I export the dd data frame to excel? Deepest Gradtitude
Gary

[[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 21 Apr 2011 - 02:49:29 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Apr 2011 - 07:50:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.