Displaying 20 results from an estimated 40 matches for "sabbe".
Did you mean:
sabe
2011 Mar 04
3
Generic mixup?
...uot;)
<environment: namespace:base>
> showMethods("print")
Function "print":
<not a generic function>
Don''t the two results contradict each other? Or do I have a terrible
misunderstanding of what comprises a generic function?
Thx,
Nick Sabbe
--
ping: nick.sabbe@ugent.be
link: <http://biomath.ugent.be/> http://biomath.ugent.be
wink: A1.056, Coupure Links 653, 9000 Gent
ring: 09/264.59.36
-- Do Not Disapprove
[[alternative HTML version deleted]]
2011 Sep 22
4
R CMD check file issues
This problem is likely to be specific to Windows, and particularly Win7.
After a successful build of a package (R CMD build addendum), I immediately
run an R CMD check for the same package.
Not always, but _very_ often, I get the following error:
C:\Users\nisabbe\Documents\@Doctoraat\R>R CMD check addendum
Loading required package: tcltk
Loading Tcl/Tk interface ... done
Loading required package: Hmisc
Loading required package: survival
Loading required package: stats
Loading required package: graphics
Loading required package: splines
Attachi...
2011 Jan 20
2
Using a list as multidimensional indexer
...r each dimension, an indexer for that dimension.
Now I would like to get the element pointed at by the list.
The obvious solutions don't seem to work, and I can't seem to get do.call to
call the indexer ('[') on my multidimensional object.
Any suggestions?
Thanks in advance,
Nick Sabbe
--
ping: nick.sabbe at ugent.be
link: http://biomath.ugent.be
wink: A1.056, Coupure Links 653, 9000 Gent
ring: 09/264.59.36
-- Do Not Disapprove
2011 Jan 28
2
Injecting code in a package?
...e package? I don''t just want
a non-package bound copy of the function, I want to make sure that when I
call pkg::plot.something, this works as before, but when, from within this
function, pkg:: plot.something.internal is called, I want it to call _my_
version of it.
Any takes?
Nick Sabbe
--
ping: nick.sabbe@ugent.be
link: <http://biomath.ugent.be/> http://biomath.ugent.be
wink: A1.056, Coupure Links 653, 9000 Gent
ring: 09/264.59.36
-- Do Not Disapprove
[[alternative HTML version deleted]]
2010 Oct 22
2
Linking to lapack
...e list of the functions available to an
R package developer, nor, strangely, questions about that. Does such a thing
exist, or are we up to hoping we find what we are looking for in the header
files? If it does not exist already, I would surely be willing to work on
it.
Thanks for any input.
Nick Sabbe
--
ping: nick.sabbe at ugent.be
link: http://biomath.ugent.be
wink: A1.056, Coupure Links 653, 9000 Gent
ring: 09/264.59.36
-- Do Not Disapprove
2010 Dec 08
2
problem accessing complex list data frames
Hi all.
I am currently attempting to build a list of sparse matrixes. That I have
already achieved, by
> vmat <- list()
> for (i in 1:n) {
> vmat <- c(vmat, sparseMatrix(i,j,x=data)
> }
How I am trying to select those elements from the list where the column e.g.
999 is not null. I can do this for one of the sparse matrices with
> which(vmat[[1]][,999] != 0)
which
2011 Jan 28
1
plot not generic
...t R does not recognize ''plot''
as a generic function, and as such, showMethods does not work.
This seems to conflict with the documentation for plot.
So 2 questions:
. How can I find the code of plot.glmnet
. Why is plot not seen as generic?
Thx.
Nick Sabbe
--
ping: nick.sabbe@ugent.be
link: <http://biomath.ugent.be/> http://biomath.ugent.be
wink: A1.056, Coupure Links 653, 9000 Gent
ring: 09/264.59.36
-- Do Not Disapprove
[[alternative HTML version deleted]]
2011 Apr 29
2
abline outside of plot region
...orks. I set
col.ticks to match the color of my abline (in the nonsimplified code), and
this works too, but unfortunately, the label below the tick is not in this
color, and a parameter for this is not present in axis.
Suggestions for either? Note: I''m on windows 7 with R 2.13.
Nick Sabbe
--
ping: nick.sabbe@ugent.be
link: <http://biomath.ugent.be/> http://biomath.ugent.be
wink: A1.056, Coupure Links 653, 9000 Gent
ring: 09/264.59.36
-- Do Not Disapprove
[[alternative HTML version deleted]]
2010 Dec 07
1
Dataframe from list of similar lists: not _a_ way, but _the best_ way
...the best (as in: quickest) way of transforming this
list of lists to a dataframe? The answer to this is probably based upon
knowledge of the inner workings of R? Or is there any way in which this
depends on the specifics of my function (for nontrivial functions and list
sizes)?
Thanks!
Nick Sabbe
--
ping: nick.sabbe@ugent.be
link: <http://biomath.ugent.be/> http://biomath.ugent.be
wink: A1.056, Coupure Links 653, 9000 Gent
ring: 09/264.59.36
-- Do Not Disapprove
[[alternative HTML version deleted]]
2011 Apr 01
3
programming: telling a function where to look for the entered variables
Hi there,
Could someone help me with the following programming problem..?
I have written a function that works for my intended purpose, but it
is quite closely tied to a particular dataframe and the names of the
variables in this dataframe. However, I'd like to use the same
function for different dataframes and variables. My problem is that
I'm not quite sure how to tell my function in
2012 Jun 01
1
Dependencies on recommended packages
...ning and
R CMD check.
I suspect other people may run into this sooner or later.
If not or if my/our analysis is wrong/incomplete I will gladly stand
corrected.
I'll leave it to you gurus to judge.
Thanks for R! (And another shout out to Stefan, who diligently helped me)
Nick Sabbe
--
ping: nick.sabbe@ugent.be
link: <http://biomath.ugent.be/> http://biomath.ugent.be
wink: A1.056, Coupure Links 653, 9000 Gent
ring: 09/264.59.36
-- Do Not Disapprove
[[alternative HTML version deleted]]
2011 Sep 22
1
R check error / update.packages
While building/checking a package of mine that depends on glmnet, I got the
following message:
* checking whether the name space can be loaded with stated dependencies
...Warn
ing: running command
''"C:/Users/nisabbe/Documents/R/R-2.13.1/bin/i386/Rterm.exe"
R_DEFAULT_PACKAGES=NULL --vanilla --slave -f
C:\Users\nisabbe\AppData\Local\Tem
p\RtmpZpjj07\Rin121ae93'' had status 1
WARNING
Error: .onLoad failed in loadNamespace() for ''glmnet'', details:
call: cat("Loaded glmn...
2011 Jan 19
1
expand.grid
...r or not NA''s are included.
I''m convinced that some package holds a readymade solution, and I''m trying
to switch from always writing my own stuff (get the number of levels per
column, then use some apply magic) to using what is there, so thanks for any
hints,
Nick Sabbe
--
ping: nick.sabbe@ugent.be
link: <http://biomath.ugent.be/> http://biomath.ugent.be
wink: A1.056, Coupure Links 653, 9000 Gent
ring: 09/264.59.36
-- Do Not Disapprove
[[alternative HTML version deleted]]
2011 Feb 01
2
Preparing dataset for glmnet: factors to dummies
...9;
dataframe), so I need all the speed I can get.
Does anybody know of a way that is quicker than the above? Note: because of
other uses of the dataframe, I don't have the option to do this conversion
before the imputation, so I really need the conversion itself to work
quickly.
Thanks,
Nick Sabbe
--
ping: nick.sabbe at ugent.be
link: http://biomath.ugent.be
wink: A1.056, Coupure Links 653, 9000 Gent
ring: 09/264.59.36
-- Do Not Disapprove
2011 Mar 31
3
choosing best 'match' for given factor
Folks,
I have a 'matching' matrix between variables A, X, L, O:
> a <- structure(c(1, 0.41, 0.58, 0.75, 0.41, 1, 0.6, 0.86, 0.58,
0.6, 1, 0.83, 0.75, 0.86, 0.83, 1), .Dim = c(4L, 4L), .Dimnames = list(
c("A", "X", "L", "O"), c("A", "X", "L", "O")))
> a
A X L O
A 1.00 0.41
2011 Aug 10
2
glmnet
Hi All,
I have been trying to use glmnet package to do LASSO linear regression. my x data is a matrix n_row by n_col and y is a vector of size n_row corresponding to the vector data. The number of n_col is much more larger than the number of n_row. I do the following:
fits = glmnet(x, y, family="multinomial")I have been following this
2011 Jun 23
3
problem (and solution) to rle on vector with NA values
Hello there R-help,
I'm not sure if this should be posted here - so apologies if this is the case.
I've found a problem while using rle and am proposing a solution to the issue.
Description:
I ran into a niggle with rle today when working with vectors with NA values
(using R 2.31.0 on Windows 7 x64). It transpires that a run of NA values
is not encoded in the same way as a run of other
2011 Mar 04
2
overleap an iteration within a for-loop when error message produced
Dear R-list member,
I'm using the function pmnorm() (-->library(mnormt)) within a for-loop.
Certain parameter values leads to an error message:
"(In sqrt(diag(S)) : NaNs produced, In sqrt(1/diag(V)) : NaNs
produced, In cov2cor(S) : diag(.) had 0 or NA entries; non-finite result
is doubtful)"
obviously because "NaNs" were produced.
Is it possible to tell R that it
2011 May 02
2
Lasso with Categorical Variables
Hi! This is my first time posting. I've read the general rules and
guidelines, but please bear with me if I make some fatal error in
posting. Anyway, I have a continuous response and 29 predictors made
up of continuous variables and nominal and ordinal categorical
variables. I'd like to do lasso on these, but I get an error. The way
I am using "lars" doesn't allow for the
2011 Apr 27
6
Assignments inside lapply
Dear all I would like to ask you if an assignment can be done inside a lapply statement.
For example
I would like to covert a double nested for loop
for (i in c(1:dimx)){
for (j in c(1:dimy)){
Powermap[i,j] <- Pr(c(i,j),c(PRX,PRY),f)
}
}
to something like that:
ij<-expand.grid(i=seq(1:dimx),j=(1:dimy))
unlist(lapply(1:nrow(ij),function(rowId) { return