Displaying 4 results from an estimated 4 matches for "thisid".
Did you mean:
this_id
2006 Mar 16
20
help with each
...ll me why this is not working? i got the example for how
to use each online and copied it to a t (except i added the if). its
telling me items.each does not exist.
var items = document.getElementsByClassName(''editView'');
if (items.length > 0){
items.each(function (result){
thisid = result.id;
thiskey = thisid.replace(/se_item_/gi, '''');
selist_toggleEdit(thiskey,''display'');
});
}
2011 May 23
1
Remove duplicate elements in lists via recursive indexing
Dear list,
I'm trying to solve something pretty basic here, but I can't really come
up with a good solution. Basically, I would just like to remove
duplicated named elements in lists via a their respective recursive
indexes (given that I have a routine that identifies these recursive
indexes). Here's a little example:
# VECTORS
# Here, it's pretty simple to remove duplicated
2010 Feb 07
2
conditioned xyplot, many y variables
...quot;,xaxt='n', log="y")
mtext( varNamesAndLabels[this_y_name,"label"], side=2, line=2.5)
}
else
plot(JUNK$TIME, JUNK[[this_y_name]] , xlab="", ylab="", type="n",xaxt='n', log="y", yaxt="n")
for( thisID in levels(TEMPORARY$ID)) {
lines(TEMPORARY$TIME[TEMPORARY$ID==thisID], TEMPORARY[[this_y_name]][TEMPORARY$ID==thisID], type="o")
}
if(count_y_variables == nrow(varNamesAndLabels)) mtext( thisSpecies, side=1, line=2.5)
}
}
library("lattice")
# The three lattice par...
2024 Nov 27
7
R Processing dataframe by group - equivalent to SAS by group processing with a first. and retain statments
I am an old, long time SAS programmer. I need to produce R code that processes a dataframe in a manner that is equivalent to that produced by using a by statement in SAS and an if first.day statement and a retain statement:
I want to take data (olddata) that looks like this
ID Day
1 1
1 1
1 2
1 2
1 3
1 3
1 4
1 4
1 5
1 5
2 5
2 5
2 5
2 6
2 6
2 6
3 10
3 10
and make it look like this:
(withing each