Displaying 4 results from an estimated 4 matches for "stuff3".
Did you mean:
stuff
2014 Jul 28
0
lattice, latticeExtra: Adding moving averages to double y plot
...ttice user). I want to keep the data points in the plot.
Find below dummy data and the script as well as annotations further describing my question.
thank you in advance!
Anna Zakrisson
mydata<- data.frame(
Year = 1980:2009,
Type = factor(rep(c("stuff1", "stuff2", "stuff3"), each = 10*3)),
Value = rnorm(90, mean = seq(90),
sd = rep(c(6, 7, 3), each = 10)))
library(Lattice)
library(LatticeExtra)
stuff1data <- mydata[(mydata$Type) %in% c("stuff1"), ]
stuff12_3data <- mydata[(mydata$Type) %in% c("stuff2", "stuff3&...
2010 Sep 16
5
using variable from for loop in naming new variables
Simple one here ... but can't get it to work ...
for (i in 1:4){
paste("stuff",[i]),sep="") <- 3 + i
}
ls()
rm(list=ls())
I just want it to create 4 new variables called stuff1, stuff2, stuff3, stuff4 with the corresponding assignments. I realise that there are more elegant functions but this is just a model of a bigger situation.
Thanks
Jim
===============================
Dr. Jim Maas
University of East Anglia
[[alternative HTML version deleted]]
2002 Feb 26
3
err:module:map_image
...fig
[Drive C]
"Path" = "/mnt/c"
"Type" = "hd"
"Filesystem" = "vfat"
[Drive D]
"Path" = "/mnt/stuff2"
"Type" = "hd"
"Filesystem" = "vfat"
[Drive E]
"Path" = "/mnt/stuff3"
"Type" = "hd"
"Filesystem" = "vfat"
[Drive F]
"Path" = "/mnt/cdrom"
"Type" = "cdrom"
"Device" = "/dev/cdrom"
"Filesystem" = "win95"
[Drive G]
"Path" = "/tmp...
2009 Jul 12
11
get DB data to rhtml file
I am trying to get data out of a database to my rhtml file. The files
look like this:
Model
-------
mystuff.rb
class Mystuff < ActiveRecord::Base
set_table_name "mytable"
set_primary_key "id"
end
Controllers
--------------
mystuff_controller.rb
require ''Mystuff''
class MystuffController < ApplicationController
def read
@me =