Displaying 8 results from an estimated 8 matches for "x318".
Did you mean:
318
2011 Sep 16
3
Help writing basic loop
Hello,
I would like to write a loop to 1) run 100 linear regressions, and 2)
compile the slopes of all regression into one vector. Sample input data
are:
y1<-rnorm(100, mean=0.01, sd=0.001)
y2<-rnorm(100, mean=0.1, sd=0.01)
x<-(c(10,400))
#I have gotten this far with the loop
for (i in 1:100) {
#create the linear model for each data set
model1<-lm(c(y1[i],y2[i])~x)
2011 Apr 13
1
print to .jpeg
Evening folks,
I'm trying to print a series of graphs to .jpeg using a variable as the
title, but run into the difficultly that I can't find a way to append the
file extension to the .jpeg (in this case extensionless!) files.
Example:
----
species.name="CussoniaHolstii"
dia<-10:100
biomass = -21.4863 + 0.5797 * (dia ^ 2)
biomass
jpeg(species.name)
plot (biomass,
2011 Jun 20
1
Quick R syntax question
Hi --
I had a pretty quick R question since unfortunately I have not been able to
find an answer on Google. It shouldn't take much more than a minute to
answer.
I'm trying to add up the major gleason grade and minor gleason grade for an
analysis of patients with prostate cancer. One column has values under
"Major Gleason" and another column has values under "Minor
2011 Dec 01
2
R endnote entry
I know citation() gives the R citation to be used in publications. Has
anyone put this into endnote nicely? I'm not very experienced with
endnote, and the way I have it at the momeny the 'R Development Core
Team' becomes R. D. C. T. etc.
Cheers.
2011 Sep 01
2
Help with creating date as POSIXct
Dear list,
I want to create a POSIX time vector as follows:
day <- as.character("110809")
time.t <- 1:3600
t.min <- time.t %/% 60
t.sec <- time.t-t.min*60
DATE <- as.POSIXct(strptime(paste(day,t.min,t.sec),"%y%m%d %M%S"))
Tail(DATE)
The problem is that the last element (3600) returns a NA and I don't
understand why. 600, 1200, 2400
2011 Mar 08
4
Make R 'Beep'
Dear all,
I would like to ask you if R can produce any kind of sound. It would be useful when code execution stops R to notify me by playing some sound.
Is that possible in R?
I would like to thank you in advance for your help
Best Regards
Alex
2011 Sep 22
2
How to adjust the y-axis range in barplot properly
Hello R-Users,
it might be a rather simple problem I have, but I couldn't find any
solution online. Thus, here is my problem:
I would like to adjust the y-axis range in a barplot, since all my
values are >70. Therefore I would like to only visualize the y-axis from
60-100 (example 1).
The problem is, the range of the y-axis is adjusted, but the barsize
stays the same and vanishes from
2011 Sep 08
2
help subsetting data based on date AND time
Dear R Community,
I am new to R, and have a question that I suspect may be quite simple but is
proving a formidable roadblock for me. I have a large data set that
includes water-quality measurements collected over many 24-hour periods.
The date and time of sample collection are in a combined Date/Time field in
the format yyyy-mm-dd hh:mm:ss. I need to be able to subset the data for
analysis of