Displaying 16 results from an estimated 16 matches for "erwann".
Did you mean:
erwan
2008 Oct 20
2
Extracting variables with a given prefix in the parent environment
hi,
get.vars.name.prefix<-function(prefix){
result<-list()
len<-nchar(prefix)
var.names<-ls(name=1,pattern=prefix) #name=1 probably wrong option
print(var.names)
for(i in 1:length(var.names)){
name<-var.names[i]
field<-substr(name,len+1,nchar(name))
result[[field]]<-get(name)
}
result
}
for example
x.1<-1
x.2<-2
get.vars.name.prefix("x.") should
2008 Oct 27
3
Arrays of Trellis plots
hello,
the example below does not work. (i know it's not supposed, but it makes it
clear what i'm trying to achieve)
par(mfrow=c(2,1))
xyplot(y~x2|x1,data=dataframe1,pch=20)
xyplot(y~x2|x1,data=dataframe2,pch=20)
i know i could probably merge the two datasets and do something like
xyplot(y~x2|x1+dataset,data=merged)
any other suggestion?
thanks.
[[alternative HTML version deleted]]
2006 Jul 30
3
Where to store filesystem path?
Hello,
My app needs to know where to store files but the path is different for
dev and production. What is the best way to do it?
- something like $path = ''/home/myrailsapp/public/files/'' in
development.rb and $path = ''/home/my_remote_prod_sapp/public/files/'' in
production.rb?
- do a test to check the env and add the path in application.rb?
- do a test to
2008 Dec 15
0
ZFS snapshot create/deletion event notification
Hi All,
Is there a way to get event notification for zfs filesystems and
snapshot creation/deletion ?
I looked at HAL and event ports but couldn''t find anything.
Does such a feature exist for zfs ?
Thanks in advance,
Erwann
--
Erwann Ch?ned?,
Desktop Group, Sun Microsystems, Grenoble
2008 Dec 15
0
ZFS snapshot create/deletion event notification
Hi All,
Is there a way to get event notification for zfs filesystems and
snapshot creation/deletion ?
I looked at HAL and event ports but couldn''t find anything.
Does such a feature exist for zfs ?
Thanks in advance,
Erwann
--
Erwann Ch?ned?,
Desktop Group, Sun Microsystems, Grenoble
2008 Oct 13
1
Trellis, conditioning on more than 2 variables,
hello,
i need help with:
data$f1<-as.factor(data$f1)
data$f2<-as.factor(data$f2)
s3<-equal.count(data$s2,number=3)
densityplot(~y| f1 + f2 + s3,
data=mydata
)
this produces 3 plots, *successively*, one for each value of s3. i was
hoping it would produce one plot. is trellis limited to 2 conditional
variables? if not, what are the appropriate commands?
thanks!
[[alternative HTML
2008 Mar 21
4
difference between 2 ecdfs
hi,
a) i have something like:
ecdfgrp1<-ecdf(subset(mydata,TMT_GRP==1)$Y);
ecdfgrp2<-ecdf(subset(mydata,TMT_GRP==2)$Y);
how can i plot the difference between these 2 step functions?
i could begin with ecdfrefl<-function(x){ecdfgrp2(x)-ecdfgrp1(x);} ...
what next?
b) if i have a vector with repeated numeric values how can i get the
subset without repeated values .e.g (0,4,0,2,2)
2008 Mar 27
1
histogram for integer data
hi,
library(lattice)
x<-c(-1,-1,-1,0,0,0,0,1,1,2)
rng<-range(x)
histogram(x,endpoints=c(rng[1]-0.5,rng[2]+0.5),nint=length(unique(x)))
instead of contiguous bins, i'd like spaces between them to indicate
that the data is discrete, or even better, line segments positioned at
integer values.
i know how to do this with plot, but i need it with histogram, so that
in more complicated
2008 Oct 17
1
R-code in Latex --- $ sign causes error
hi,
here's what i have:
\lstset{
basicstyle=\ttfamily,
keywordstyle=\bfseries,
showstringspaces=false,
columns = fullflexible,
mathescape = true,
language=R
}
\begin{lstlisting}
lst$val<-val
\end{lstlisting}
./software.tex:16:Extra }, or forgotten \endgroup. lst$
the culprit here is the $ sign.
thanks.
ps:
i'm posting here rather than Latex is bec i guess an R user is
2008 Oct 20
1
passing a list where names arguments are expected
hi,
say i have a function f and i'd like to to call it like this:
1) f(list(a=...,b=...))
but i can't do it, because f is defined as:
2) f<-function(a=NULL,b=NULL){...}
is there a way that i can approximate 1), such as mapping list(a=,...b=...)
to "list(a=,...b=...)" and then replacing "list" by "f", and then evaluating
the expression?
thanks.
2008 Nov 13
2
growing a list sequentially -- memory management
hello,
i have something like:
out<-list()
for(i in 1:n){
data<-gen(...) #fixed size data
out[[i]]<- fun(data)
}
> object.size(out[[1]])
6824
In principle 1 GB should allow
n = 1024^3/6824 = 157347?
i have about 2GB are not taken by other processes. however, I can see the
memory shrinking quite rapidly on my system monitor and have to stop the
simulation after only n=300. why
2008 Oct 22
12
Hotplug issues on USB removable media.
...e these into the list of viewable snapshots in nautilus giving the user a broader
selection of restore points. In an ideal world we would like to detect the insertion of the selected media,
have it automatically mounted and backup to it automatically.
More info on time-slider:
http://blogs.sun.com/erwann/entry/zfs_on_the_desktop_zfs
So to realise this we need to be sending datasets to a zfs formatted device instead of file blobs
stored on a fat32 formatted storage device etc. We would aim to provide the user with a GUI to do this
and create a zpool on the selected storage device.
I started out tes...
2006 May 15
0
wrong argument type String (expected Module)
Hello,
When I create a select in a form, I get this error:
wrong argument type String (expected Module)
I know that ''type'' is a reserved word for STI and that''s what I want: a
select box to choose the right type of Vehicule object:
TYPES = [
["Car", "Car"],
["Truck", Truck"],
["Bike", "Bike"]
]
and
<%= options
2006 Aug 05
0
default upload directory?
Hi,
Is it possible to tell Rails to use /tmp/upload directory instead of
using the OS temp dir to upload files?
--
Posted via http://www.ruby-forum.com/.
2006 Jul 25
6
form and pagination question
Hello,
How do I get params from a form to use with a paginator?
debug(params) shows this
city: !map:HashWithIndifferentAccess
id: "1"
but in my controller, when I try to use
@hotel_pages = Paginator.new self, Hotel.count(:conditions =>
"hotels.city_id = params[:city][:id]"), 3, @params[''page'']
it doesn''t work. I suppose it''s a simple
2008 Jun 03
2
JGR / linux
Hi all,
i'm trying to install JGR on linux (see bottom), but it runs into errors.
The bottom of the sequence below shows "JavaJD could not be found"
Any suggestion, please?
$ sudo apt-get install sun-java6-jdk
$ sudo update-alternatives --config java
There are 5 alternatives which provide `java'.
Selection Alternative
-----------------------------------------------
1