[R] Running Loops

2013-09-11 Thread jfrei006
I have a data set called yall with 5000 rows, I want to randomly sub sample 100 rows 100 times. This is what I have so far: yall-read.csv(Z:\\SOFTEL\\North Key Largo project\\Canopy_Height\\random_age_strat\\Young\\Abv2ft_young.csv) *yall1 - yall[sample(1:nrow(yall), 100, replace=FALSE),]

[R] Linear Regression line equation

2013-09-04 Thread jfrei006
First of I am new to using R. I have a dataset that I plotted using R, I created a scatter plot and used abline to create the line, what I need is to find the equation of the line. Below is the script I have used up until this point. young400_1-read.csv(Z:\\SOFTEL\\North Key Largo