Re: [R] unable to carry through object in a nested function

2014-01-22 Thread arun
Hi, Try this: GetPropPlot<- function (PrePropData, direction, SSThreshold, cell, stim) {    if (direction== ">") {     PropData<-ddply(PrePropData,.(SUBJECT, STIM, CELL, SIGNAL, DAY), here(summarise),     PROP=FindGreaterThanProportion(SIMSCORE, SSThreshold))     }     PlotSubs

Re: [R] unable to carry through object in a nested function

2014-01-22 Thread Chen, George
Hi, This is a resend of a previous message reproduced below but with sample data to run. Thanks. George Chen Hi There, I am having trouble carrying through an object listed in the outer function into the inner function of a nested pair. sample data below - library(plyr) SUBJE

[R] unable to carry through object in a nested function

2014-01-22 Thread Chen, George
Hi There, I am having trouble carrying through an object listed in the outer function into the inner function of a nested pair. This is my code: FindGreaterThanProportion<- function (y, SSThreshold) { DenomCells<-length(y) NumerCells<-subset(y,y>SSThreshold) PropCells<-length(NumerCel