Displaying 3 results from an estimated 3 matches for "structu".
Did you mean:
structs
2007 May 16
2
substitute "x" for "pattern" in a list, while preservign list "structure". lapply, gsub, list...?
...uestion re:using "gsub" (or some similar functions) on the contents of a list.
I want to design a function that looks at "everything" contained din a list, and anytime it finds the text string "pattern" replace it with "x". I also wish to preserve the "structure" of the original list. What is a good way to accomplish this?
I tried :
a = matrix(data=c(23,45,'red',78),nrow=2)
b = c('red','green',1,2,3)
d = data.frame( test1=c(223,445,'red',78,56) , test2= c('red',NA,NA,NA,NA) )
e= list(a,b,d)
list1 = list(a,b...
2006 Jun 01
1
help with syntax of nlme function
...gt; fit<-nlme(model=Absorb~ k1 - (1/(b*Ch.surf)),
+ data=Marouane.chlorophyll,fixed=k1+b~1,
+ groups=~Espece/Plante,
+ start=list(k1=97.8, b=4.68))
However, there is something wrong with this syntax because I get the
following error:
Problem in names<-: Invalid length for names attribute: structu
re(.Data = list(structure(.Data = numeric(0), class ....
Can someone explain what I am doing wrong?
Bill Shipley
North American Editor, Annals of Botany
Editor, "Population and Community Biology" series, Springer Publishing
Département de biologie, Université de Sherbrooke,
She...
2011 Dec 22
0
mongodb Map/reduce grouping
Hi,
I have two model, challenge(embeds_many :tasks) and task(embedded_in
:challenge),
finally database structue is like this
{ "_id" : ObjectId("4db8b0524f0b495c3a7dbba4"), "title" : "Testing1",
"created" : ISODate("2011-12-12T00:00:00Z"),
"tasks" : [
{
"name" : "task no 1",
&qu...