Displaying 3 results from an estimated 3 matches for "secondset".
2012 Aug 19
1
moving distance between two sets of data
...s of numbers they bounce around zero, positive one and negative one. They have a relationship between them, where one diverges away from the other. I want create a second set of numbers that tracks that divergence.
#Lets make some data like mine, kinda
Firstset <- runif(100, min = -1 , max =1)
Secondset <- runif(100, min = -1 , max =1)
#So something like:
Divergence <- abs (Firstset - Secondset)
#but this doesn't work because when Firstset is at .5 and Secondset is at -.25 it returns .25 instead of .75
#another possibility is:
Divergence <- abs (Firstset) - abs (Secondset)
#but...
2011 Nov 07
1
function that load variables
...but my problem is
that this function does not return the variable names
load_data<-function(path,Reload=FALSE){
if (Reload==TRUE){
print("Loading results")
# FirstSet
load(file=paste(path,'first',sep=""))
first<-Set
# SecondSet
load(file=paste(path,'second',sep=""))
second<-Set
..................(part omittted here)
save( first, second,....(part omitted here)..., file=paste(path,'Results',sep=""))
}
return (load(file=paste(path,'Results',s...
1999 Aug 23
1
Strange 'Unimplemented feature in rep' error (PR#254)
....howto == \"n\", boot.result, l.meanboot.test(onew.x, onew.y, " " samples = boot.test.samples, expect = makezero, return.htest = T, "
[3] " alt = \"t\"))"
[[3]]
[1] "measure.power(firstset, secondset, t.howto = t.howto, var.equal = var.equal)"
[[4]]
[1] "FUN(X[[i]], ...)"
[[5]]
[1] "lapply(split(X, group), FUN, ...)"
[[6]]
[1] "tapply(1:nrow(dd), grouping, summarize.effects, compute.power = compute.power)"
[[7]]
[1] "as.list(X)"
[[8]]
[1] "...