Displaying 20 results from an estimated 10000 matches similar to: "Subset and levels"
2009 Feb 05
3
subset problem (reducing from six to two levels)
Hi all,
I have got a seemingly simple problem (I am an R starter) with subsetting my
data set, but cannot figure out the solution: I want to subset a data set
from six to two levels, so that all analyses are done only with these two
remaining levels.
I tried
TOTAL<-read.delim('total.csv',header=T)
SUBSET.OF.TOTAL<-subset(TOTAL, FactorX %in% c("Level1","Level2"))
2011 Dec 23
2
2.1.rc1 (056934abd2ef): virtual plugin mailbox search pattern
Hello Timo,
With dovecot 2.1.rc1 (056934abd2ef) there seems to be something wrong
with virtual plugin mailbox search patterns.
I'm using a virtual mailbox 'unread' with the following dovecot-virtual file
$ cat dovecot-virtual
*
unseen
For testing propose I created the following folders with each containing
one unread message
INBOX, INBOX/level1 and INBOX/level1/level2
1999 Apr 16
1
NextMethod
>> One clear moral seems to be don't do anything more inside a
>> generic function than you really need to do. Keep it *very*
>> simple indeed.
>>
> I recall JMC saying something like, all generic functions
> should be one line long; a call to the appropriate UseMethod.
It certainly is encouraging to know that others also have been confused by
aspects of
2007 Aug 01
1
Re : Custom axis
Maybe I do not explain well what I would like to do. I do not want to change the labels of the axis, but the scale. What I want is a general procedure for changing the scale. Its like using a logarithmic scale on a plot. Labels are the same, but the increases of x along the x-axis are defined by a known monotone and continuous function.
Florent Bresson
----- Message d'origine ----
De :
2007 Nov 28
2
Change in smbclient between 3.0.24 and 3.0.25c breaks third party app
Hello list,
A change in smbclient between 3.0.24 and 3.0.25c breaks [1] the gollem
filemanager [2] and maybe others.
In particular folder creation is broken unless the folder is a top level
folder on the share.
To create a subfolder "level2" in the folder /level1 of a share gollem
executes this command:
/usr/bin/smbclient "//1.2.3.4/sharename" "-p139"
2006 Aug 09
1
Improvement: SiteMapper - working ideas as a possible RoR''s routing replacement
Hello,
I''ve done potencial replacement for RoR''s routing mechanism.
It just works as an independent class so you can try bundled examples
withou installing anything else. I didn''t integrated it into Rails (as
a plugin?) because I don''t know if anyone would appreciate it etc.
SiteMapper features:
--------------------
1. uses regexp mask to get variables from
2007 Jan 24
4
Replace missing values in lapply
I have some matrices stored as elements in a list that I am working
with. On example is provided below as TP[[18]]
> TP[[18]]
level2
level1 1 2 3 4
1 79 0 0 0
2 0 0 0 0
3 0 0 0 0
4 0 0 0 0
Now, using prop.table on this gives
> prop.table(TP[[18]],1)
level2
level1 1 2 3 4
1 1 0 0 0
2
3
2013 Jan 26
0
[LLVMdev] Closures, newbie question
On 26/01/13 19:20, Torsten RĂ¼ger wrote:
[...]
> Just at the end it mentions closures and I was wondering how those are done in llvm.
> The link was to wikipedia, and i do know what closures/blocks/continuations are, (i think) but maybe someone could point me to where to read about how to do them in llvm.
I've implemented closures in the past --- it's fiddly and a surprising
amount
2006 Oct 16
5
Re : Generate a random bistochastic matrix
Thanks, I tried someting like this, but computation takes times for large matrices
btransf <- function(y,X=length(y)^4) {
N <- length(y)
bm <- matrix(rep(1/N,N^2),N,N)
for(j in 1:X){
coord <- sample(1:N,4,replace=T)
d <- runif(1,0,min(bm[coord[1],coord[2]],bm[coord[3],coord[4]]))
2006 Oct 18
2
multiline string continuation
Dear R experts,
I wonder how can one input a string variable in multiple lines in a R
script. I've seen solution to the command line continuation in the
non-string situation (just continute at the new line). However, that
doesn't work for strings because the new line character, "\n", is
included in the resultant string. For example, if I type the following
in a script:
2008 Aug 18
3
Samba 3.0.x access rights issue with secondary groups or Unix rights
Hi experts
I have a trouble in access rights
I am running Samba
3.0.31 on Solaris 10 x86 64 bits as member server of an Active
Directory 2003 R2 domain (MYDOMAIN) using Identity Management for Unix
I set rights to access a sub folder of a Samba share. On Solaris the user
"toto" jdoe can write a new file. From Windows, the same user can't.
Itlooks like OK when the primary group
2009 Jul 17
1
Samba Permissions
I have fought with these before. I finally got them down the way that I
wanted them, but I was wanting to set this up a bit different. I want to
make sure that there is no way to do this without actually having to
assign a bunch of different drive letters to shares.
I basically one one Drive letter assigned to the top of the directory.
Underneath that directory there will be several others and
2010 Feb 08
1
files-from and delete option?
Hi Guys,
is there a way to have a absolute file paths in a file - and use
--files-from together with --delete option?
what i mean is - lets say i have a daily generated file a.txt from an
external script which contains something like this:
/level1/level2/level/.../.../leveln/file.txt
can i ask rsync to copy all files from that kind
- /level1/level2/level/.../.../leveln/file.txt which my file
2005 Nov 28
3
optimization with inequalities
I have to estimate the following model for several
group of observations :
y(1-y) = p[1]*(x^2-y) + p[2]*y*(x-1) + p[3]*(x-y)
with constraints :
p[1]+p[3] >= 1
p[1]+p[2]+p[3]+1 >= 0
p[3] >= 0
I use the following code :
func <- sum((y(1-y) - p[1]*(x^2-y) + p[2]*y*(x-1) +
p[3]*(x-y))^2)
estim <- optim( c(1,0,0),func, method="L-BFGS-B" ,
lower=c(1-p[3], -p[1]-p[3]-1,
2006 Oct 16
2
Re : Re : Generate a random bistochastic matrix
Yes, you're right. In fact, it's just an adaptation of a matlab command and the author advises using N^4 replications that's why it's the default in the function. The bistochastic matrix is not my subject of interest, but I need it to perform some random tranformation of a vector of incomes.
Florent Bresson
----- Message d'origine ----
De : Richard M. Heiberger <rmh at
2005 Dec 05
3
The gamma function and infinity
I have to calculate some formula like:
gamma(x)/(gamma(x+y)
and I observed that for relatively big values of x, R
returns infinity and so cannot compute the formula. Is
it possible to force R to give the real value of
gamma(x) instead of Inf ?
thanks
2005 Oct 31
3
Applying a function to a vector
I have defined a function to compute the value of a
beta distribution of the second kind (the existing
beta distribution of th stats package is the beta
distribution of the first kind). It works perfectly
for a single value, but I want to apply it to a vector
of 22 000 values. I can use a loop for the calculation
of each value but it runs very very slowly.
So, what can I change ?
Hers's the
2005 Oct 06
2
R/S-Plus equivalent to Genstat "predict": predictions over "averages" of covariates
Hi all
I'm doing some things with a colleague comparing different
sorts of models. My colleague has fitted a number of glms in
Genstat (which I have never used), while the glm I have
been using is only available for R.
He has a spreadsheet of fitted means from each of his models
obtained from using the Genstat "predict" function. For
example, suppose we fit the model of the type
2006 Oct 16
2
Generate a random bistochastic matrix
Please, I would like to generate a random bistochastic matrix, that is a squared matrix of non-negative numbers with each row and each column sum to 1, for example :
.2 .3 .5
.6 .3 .1
.2 .4 .4
I don't know of to code this. Do you have any idea ?
Thanks
Florent Bresson
___________________________________________________________________________
Demandez ?
2007 Aug 24
2
Applying a function to an array
Dear R-users,
I would like to apply a function (more precisely sd()) over the third dimension of a three-dimension array. The function apply would be interesting but the chosen function can only be applied on the rows and columns of the array according to the help file. I can use a loop to cut the array in matrices and then use apply for each replication, but it's not very nice. A small