search for: testz

Displaying 4 results from an estimated 4 matches for "testz".

Did you mean: test
2005 Feb 01
2
assign connections automatically
...I'm sure I'm missing something obvious about the inherent properties of functions..... #first six lines just setup for this example > x<-1:20 > y<-20:40 > z<-40:60 > write(x, file="testx.txt") > write(y, file="testy.txt") > write(z, file="testz.txt") > inConnect <- function(){ + fn <- dir(pattern="*.txt") # grab only *.txt files + fn2 <- gsub('.txt', "", fn) # removes the '.txt' from each string + for(i in 1:length(fn)) + assign((fn2[[i]]),file(fn[i], open="r")) + } > sho...
2012 Jan 01
1
empty files created with trellis xyplot jpeg device
...TRUE TRUE TRUE TRUE FALSE FALSE # Example functionality from the interactive console:::: # I am going to use a zone variable to help duplicate the code in the function > zone [1] "isoranp-z1" # call a function to pull in data and assign it to a data frame > testz<-get_zonedata_url(2011,51,zone) # validate the data frame > str(testz) 'data.frame': 2016 obs. of 14 variables: $ ts : Factor w/ 2016 levels "12/18/2011 00:00",..: 1 2 3 4 5 6 7 8 9 10 ... $ server : Factor w/ 1 level "phx1npf4sn2": 1 1 1 1 1 1 1 1 1 1 .....
2006 Dec 13
2
persp() problem
...ues expected" So I try to adjust it to: testx <- unique(sort(u1data)) testy <- unique(u2data[order(u1data)]) testf <- function(testx,testy){qgev(pnorm(rhoF*qnorm(pnorm((qnorm(testy)-rho2*qnorm(testx)/sqrt(1-rho2^2)))) +sqrt(1-rhoF^2)*qnorm(0.95)),-0.3935119, 0.4227890, 0.2701648)} testz <- unique(outer(testx,testy,testf)[order(u1data)]) BUT SAME WARN: "Error in persp.default(testx, testy, testz) : increasing 'x' and 'y' values expected " So how can I use persp in this situation?????? Thanks for any help! ====================================...
2007 Sep 24
3
Custom type
...module Puppet newtype(:test) do newparam(:name) do end newparam(:listen) do defaultto "silent" end def evaluate puts "evaluating..." return super.evaluate end end end The problem is that when running puppet I get: err: //default/testz/Test[1]: Failed to retrieve current state of resource: undefined method `evaluate'' for []:Array So, what does evaluate suppose to return? -- Dmitri Priimak