search for: listofresult

Displaying 2 results from an estimated 2 matches for "listofresult".

Did you mean: listofresults
2013 Sep 17
1
"With" question
All, Trying to avoid using attach and detach while teaching class in Intro Stats. data=read.delim("dataset1.dat",header=TRUE) with(data,{ sort(age) length(age) (age[10]+age[11])/2 }) However, this code only produces output for the last line between the curly braces. Granted, as we type the lines in one at a time and execute the code, we'll see each output. And, we can fix
2011 Dec 12
3
shorter way of coding
Dear R users, I am using the code below to generate a fitted value of b. I have about 300 different values for for y (y1, y2, ...y300) which means I will have to write the code below 300 times to generate the 300 different fitted values for y. Is there a short way of doing that ? Many thanks in advance Mintewab library(mgcv) dat <- read.table("e:/minti's