search for: source_0028_0029

Displaying 3 results from an estimated 3 matches for "source_0028_0029".

2010 Jan 27
1
Problem with xyplot when creating a .png graphic
Hello, I have the following problem. I have created a couple of scripts to create .png graphic files from data plots, using the xyplot (lattice) command. When I refere to the script with source(""), the script will be red but there is no output file. The scripts work well with the regular plot command and produce a nice PNG file. On the other hand if I entre the single commands
2008 Jul 15
4
Iterations
I have a command that reads in some data: x <- read.csv("Sales2007.dat", header=TRUE) Then I try to organize the data: sc <- split(x, list(x$Category, x$SubCategory), drop=TRUE) Then I want to iterate through the data. I was able to get the following to run on the R console: for(i in 1:length(sc)) { sum(sc[[i]]$Quantity) } But notiing is primted on the console. I find
2007 Nov 27
4
if condition and for cycles
I have two questions about R: 1) Does anyone knows why I get the plots but not the summary results of the linear fitting when I run this code? When I run it outside the if condition it works fine. if (op==4) { t=1:length(time(SeaIce)) fitlinear=lm(SeaIce~t) windows() plot.ts(SeaIce) lines(ts(fitlinear$fitted.values,start=1979,frequency=12)) summary(fitlinear)