Thanks for your reply. To my surprise I can find one more strange behavior of
my 15X15 matrix A, that is if I call the function chol(A) in the terminal it
decompose the matrix fine without any errors or warnings.
But if I call the function chol() within a function, which I have written in
Hi,
I have been trying to get the sub function to work but can't for the life of me
figure it out. I tried looking at ?sub but I think there is something that I am
just not understanding.
Example failed attempts
sub(\\,/,G:\Compensation Audits_Reports\Step Audit\Steps off Step.accdb)
Error:
To whoever is looking for the same thing as I was, I found a solution, or
sort of.
Here is the code:
flavors-c(vanilla, chocolate, strawberry)
w - gwindow(checkbox example)
gp - ggroup(container=w)
glabel(Favorite flavors:,cont=gp)
cbg - gtable(flavors, cont=gp, multiple=T)
# Here is the
Hello,
Using the Correspondence Analysis package (ca), I wonder if there is a way
to further customize the plot beyond the options given in plot.ca provided
by the mentioned package.
The correspondence analysis I am doing consists of two datasets sharing
only the rows, so the plot draw the total
Hi,
I'm having trouble understanding how trunc is operating on vectors of
POSIXlt objects. Why does dates[1:4] in the last line return a bunch of NAs
even though dates look like it has all the right elements? This worries me
that something is off with my use of trunc. Is trunc not suppose to be
Hi
I'm just stepping through the decompose() function, in stats. Does
this contained line of code not work if you have a time series ending
unevenly (i.e., middle of the year), or am I missing something?
season - na.omit(c(as.numeric(window(season, start(x) +
c(1, 0), end(x))),
I am working on minimization of sum of squared errors for a problem that has
2 box-constrained parameters.
I got the solution for this problem using L-BFGS-B method in optim
function using an R code as
res-optim(par=c(parInit), fn=myFunction, method = c(L-BFGS-B), lower =
parMin, upper = parMax,
On Jun 14, 2012, at 2:17 PM, Alaska_Man wrote:
Dr. Winsemius,
Really quick, a BACI is a Before-After-Control-Impact approach. I
have a long time series of sea cucumber density estimates, which are
taken at the same location(s) through time. Some are in areas
Impacted by sea otters and
hello
I want a code which can correct the spelling mistakes as well as
grammatical mistakes in the sentences...that is if I am writing following
sentence:
I want too meet my frnd bt due to hectic shcedule I cant
I want output in following way:
I want to met my friend but due to hectic
Hello,
I am trying to convert calendar dates (Month, Day, Year) into Julian Days
Â
Product code Bureau of Meteorology station number Month Day Year Date_mdy Date
4102001 70014 1 1 1939 1/01/1939 1/01/1939
4102001 70014 1 2 1939 1/02/1939 2/01/1939
4102001 70014 1 3 1939 1/03/1939 3/01/1939
On 12-06-14 6:23 PM, Lopez, Dan wrote:
Hi,
I have been trying to get the sub function to work but can't for the life of me
figure it out. I tried looking at ?sub but I think there is something that I am
just not understanding.
Example failed attempts
sub(\\,/,G:\Compensation
On Wed, Jun 13, 2012 at 8:10 PM, David Winsemius dwinsem...@comcast.net wrote:
On Jun 13, 2012, at 9:55 AM, Powell, Jeff wrote:
Dear all,
I would like to change the fill pattern of a histogram using histogram()
in the lattice package. I know how to do so using hist(), but would prefer
to
Hey R folks,
i found some strange (to me) behaviour with chron to POSIXct conversion.
The two lines of code result in two different results, on ewith the
correct time zone, one without:
library(chron)
as.POSIXct(chron('12/12/2000'), tz = 'UTC')
as.POSIXlt(chron('12/12/2000'), tz = 'UTC')
Good morning.
I have a real fuzzy question to ask; we have a calculation engine which
is composed by n virtual machines each of them with a jvm 2GB of memory
on Linux Red Hat each of them with the R package which comes along
with the Red Hat Linux distribution.
We have now to increase the number
Hello,
See inline.
Em 15-06-2012 08:03, Duncan Murdoch escreveu:
On 12-06-14 6:23 PM, Lopez, Dan wrote:
Hi,
I have been trying to get the sub function to work but can't for the
life of me figure it out. I tried looking at ?sub but I think there is
something that I am just not understanding.
Follow the posting guide,please: I believe at this point we need
reproducible code and your data to provide you help. See ?dput to post
your matrix.
-- Bert
On Thu, Jun 14, 2012 at 11:30 PM, nata...@orchidpharma.com wrote:
Thanks for your reply. To my surprise I can find one more strange
[plug to follow]
depmixS4 fits hidden/latent Markov models on (mixed mode) multivariate
longitudinal data (and it can be found on the cluster task view).
hth, Ingmar
On Thu, Jun 14, 2012 at 1:12 PM, ya xinxi...@163.com wrote:
Hi all,
I have a question, is there any R package dealing with
Thanks for your reply. I am sorry and I am bit hurried up to say before doing a
proper due diligence, I have found out that during the optimization the
variables tend to vary the values of the matrix , the function report error at
some point (in particular iteration step) when the matrix become
Dear List Members
I used to play around with R to answer the following question by
simulation (I am aware there is an easy explicit solution, but this is
intended to serve as instructional example).
Suppose you have a poker game with 6 players and a deck of 52 cards.
Compute the empirical
hello,
I am using the following code
s-I am very happy, excited, and optimistic.I am very scared, annoyed, and
irritated.Iraq’s political crisis entered its second week one step closer to
the potential.dissolution of the government, with a call for elections by a
vital coalition partner and a
Hi,
I have some trouble with the following: I have a table of 7 rows and
6columns. The columns 1,2,3 have information about the number of employees.
The columns 4,5,6 have information about the number of working hours. Each
row, is corresponding with a week.
My goal is to make a boxplot,
OdfWeave is a great way of creating reports and other quality output from R.
But is there a simple way to pass a parameter to the report? What I mean is:
odfWeave(templatefile,outputfile) creates the report. If would be much more
flexible if it would be possible to do something like
Function DEoptim in package DEoptim for differential evolution defines an
optional parameter fnMap:
fnMap
an optional function that will be run after each population is created, but
before the population is passed to the objective function. This allows the user
to impose integer/cardinality
On Mon, Jun 11, 2012 at 1:10 PM, maxbre mbres...@arpa.veneto.it wrote:
sorry but I can't close this thread with a viable solution other than the
following one
(i.e. by defining an user function to add line);
I understand that the problem is related to the fact that:
mean(log(.)) !=
Hello,
It works with me. Problem with R version? OS?
sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=Portuguese_Portugal.1252
LC_CTYPE=Portuguese_Portugal.1252
[3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C
[5]
Thank you for your response, I will try to be clearer. I would like to fill my
lattice histogram bars using a symbol rather than a color. If that is not
possible, then I will use hist() instead.
From trellis.par.get()
bar.fill only includes col, so perhaps I'm out of luck?
With regards,
Jeff
Thanks a lot, Deepayan!
What a great honour hearing from you inside this thread!
Now, at last, I understand where MY problem was
(but please, don’t laugh – too loudly at least – and, first of all, sorry
for that!)
this was my “poor” wrong attempt (but I did not post this)
means-mean(exp(x))
Hello,
Will a factor of 4 do?
This is variant 3, revised.
#
## Variant 3.b ##
#
## Initialize matrix to hold results
singlecolor - matrix(NA, simlength, noplayer)
Dear R Users,
I have struggled with the following problem for days, which I thought was
simple, although it would likely be basic to most of you.
I am working with time series data.
In my script, my intention is to create first differences of the variables in
the file so that I end up
HI,
I am working on R and Latex.
R CMD Sweave Test.Rnw (this generates Rnw.Tex file )
R CMD pdflatex Test.tex (It generated Test.pdf)
Is there any way to change the name of of output file (Test.pdf). I want it
to pass the output file name as parameter.
R CMD Sweave Test.Rnw Output_File
Dear R Users,
Sorry for what seems like I am re-posting. When I was typing my initial
posting, I intended to copy and paste the commands from my script, but ended up
forgetting. I am now pasting the commands in this email.NB: Below is a copy of
'all' the relevant commands in my script
If you really want DCred1, DCred2, etc, you'll need to use assign() and
paste() within your loop. But he's a more R-ish way:
# Differences of Cred
DCred - list()
for(i in 1:5){
print(DCred[[i]]- diff(DCred, lag=i, difference=1))
}
DCred[[1]]
Sarah
On Friday, June 15, 2012, Lekgatlhamang,
Hello,
On Fri, Jun 15, 2012 at 1:10 AM, raishilpa raishilpa@gmail.com wrote:
I want a code which can correct the spelling mistakes as well as
grammatical mistakes in the sentences...that is if I am writing following
sentence:
I want too meet my frnd bt due to hectic shcedule I cant
Dear subscribers,
I have made a simulation using loops rather than apply, simply because the loop
function seems more natural to me. However, the current simulation takes
forever and I have decided - finally - to learn how to use apply, but - as many
other people before me - I am having a hard
Hello,
Simple question with reproducible example code.
The best way to go is to know to what dimension you want to apply the
function, the 1st, and to write the function in such a way as to have
the passed rows as the first argument. If it has other arguments, they
go after. Since your
Yes, it does thanks. Before your explanation I didn't understand that I had to
separate distancer and y with a comma...great!
From: Rui Barradas [ruipbarra...@sapo.pt]
Sent: Friday, June 15, 2012 1:49 PM
To: Schumacher, G.
Cc: r-help@r-project.org
On Fri, Jun 15, 2012 at 11:27:44AM +, Schumacher, G. wrote:
Dear subscribers,
I have made a simulation using loops rather than apply, simply because the
loop function seems more natural to me. However, the current simulation takes
forever and I have decided - finally - to learn how to
Dear list
I've a generic question about how to tune an SVM
I'm trying to classify with caret package some population data from a
case-control study . In each column of my matrix there are the SNP
genotypes , in each row there are the individuals.
I correctly splitted my total dataset in
?julian
Paloma Moya polilla...@yahoo.es wrote on 06/15/2012 01:13:04 AM:
Hello,
I am trying to convert calendar dates (Month, Day, Year) into Julian
Days
Product code Bureau of Meteorology station number Month Day Year
Date_mdy Date
4102001 70014 1 1 1939 1/01/1939 1/01/1939
4102001
Frans,
I'm not sure I understand what you're after.
I suggest that you share a small example data set, using dput().
Then give an example of what you want the output to look like.
Jean
faelsendoorn f.a.elsendo...@gmail.com wrote on 06/15/2012 03:09:41 AM:
Hi,
I have some trouble with the
Hi: I don't know anything about gentoypes but it sounds like you overfitted
the training set so you should try using regularization. In standard
svm-classification algorithms, that can be done by decreasing the parameter
C which decreases the objective functional penalty for mis-classifying. (
Le jeudi 14 juin 2012 à 20:32 -0400, Salvador Ramirez a écrit :
Hello,
Using the Correspondence Analysis package (ca), I wonder if there is a way
to further customize the plot beyond the options given in plot.ca provided
by the mentioned package.
The correspondence analysis I am doing
Grammar is quite complicated, but for spelling you might try this
wonderful article by Peter Norvig:
http://norvig.com/spell-correct.html
Michael
On Fri, Jun 15, 2012 at 12:10 AM, raishilpa raishilpa@gmail.com wrote:
hello
I want a code which can correct the spelling mistakes as well as
Rui, thank you very much.
I keep forgetting about the rowSum and friends. (precalculating the
powers just slipped my attention).
And, yes, a factor of will of course do. Do you see a further
improvement in this case?
Best,
Simon
On Fri, Jun 15, 2012 at 12:25 PM, Rui Barradas
Just to take a stab at it, I'd suggest you don't actually need apply()
and could simply get what you need with
hist(DATA[,4:6])
if your data is as described.
Michael
On Fri, Jun 15, 2012 at 7:23 AM, Jean V Adams jvad...@usgs.gov wrote:
Frans,
I'm not sure I understand what you're after.
I
I missed something in my original reply:
You intended a recursive approach, I think, but that wasn't clear in
your code, and I simply repeated your actual code rather than your
intended code in my response. If that's what you want, you need
something more like:
DCred- list()
DCred[[1]] -
On Fri, Jun 15, 2012 at 02:08:13PM +0200, Petr Savicky wrote:
On Fri, Jun 15, 2012 at 11:27:44AM +, Schumacher, G. wrote:
Dear subscribers,
I have made a simulation using loops rather than apply, simply because the
loop function seems more natural to me. However, the current
General rule of thumb: use POSIXct rather than POSIXlt for such things
and only convert to POSIXlt (losslessly) at the end of your
calculations when you need it for display reasons. Internally, POSIXct
is just a double, so it is nice to do calculations on, while POSIXlt
is a list-like object which
On Jun 15, 2012, at 5:40 AM, Powell, Jeff wrote:
Thank you for your response, I will try to be clearer. I would like
to fill my lattice histogram bars using a symbol rather than a
color. If that is not possible, then I will use hist() instead.
From trellis.par.get()
bar.fill only
Jeff,
Thanks. I was able to easily get rid of the do.call code and use the t(
t(...)) construct.
In terms of the dates I have tried your suggestion and I am having an odd
problem.
The dates I included in my previous message were only a subset of the actual
dates I am using.
My dates were
I'm somewhat confused:
i) What does this have to do with your subject line?
ii) There does not exist -- to my knowledge -- an implementation of R
which runs on the JVM.
iii) Have you simply looked into R's native parallel computing
options? That seems to be (maybe?) what you are trying to do.
On Fri, Jun 15, 2012 at 1:48 AM, raishilpa raishilpa@gmail.com wrote:
hello,
I am using the following code
s-I am very happy, excited, and optimistic.I am very scared, annoyed, and
irritated.Iraq’s political crisis entered its second week one step closer to
the potential.dissolution of
Dear all,
first of all I apologize for not having changed the object.
I just re-used an old email I sent some time ago.
The let us go into the question.
Our architecture is the following:
A (set of) java programs running under a jvm that passes data and instructions
to an R instance
On Fri, Jun 15, 2012 at 8:24 AM, shilpa rai raishilpa@gmail.com wrote:
thanks to all :)
Unless I suddenly became plural, I believe you meant to hit reply-all.
I have found a code on nets , please visit the following link
As of recent versions of R, you can actually go for what are
officially recognized as ultimate speed functions .rowSums() and
friends.
You might also use the compiler() package to byte-compile that inner
loop. [The function going to sapply] It won't be massive, but perhaps
another 3 or 4x
On Fri, Jun 15, 2012 at 9:48 AM, R. Michael Weylandt
michael.weyla...@gmail.com wrote:
As of recent versions of R, you can actually go for what are
officially recognized as ultimate speed functions .rowSums() and
friends.
Sorry, perhaps that wasn't totally clear. Regarding .rowSums() note
that
Honestly, given what a pain dates are in Excel, I might simply import
them as strings and do the conversion on the R side of things. Also,
I'd recommend you use Date objects rather than POSIXct to cut out the
unnecessary complexity of timezones, DST, etc. [See Gabor's article in
RNews 4/1 for a
I do not think it is possible with the 'R CMD Sweave' interface, but
you can always use the 'R -e' approach, e.g. R -e 'Sweave(foo.Rnw);
file.rename(foo.tex, foo-bar.tex); tools::texi2dvi('foo-bar.tex')'
(not tested, but idea is there)
To make this more natural, you can try the knitr package
On Fri, Jun 15, 2012 at 9:36 AM, angelo.lina...@bancaditalia.it wrote:
Dear all,
first of all I apologize for not having changed the object.
Subject you mean. Linguistically, it is perhaps a little arbitrary,
but that's the name the email gods chose long ago and I tend to agree
with them. I
Hi,
I would like to make a replication of 10 of a linear, first order
Autoregressive function, with respect to the replication of its innovation,
e. for example:
#where e is a random variables of innovation (from GEV distribution-that
explains the rgev)
#by using the arima.sim model from TSA
Dear Peter,
I am trying to apply the WGCNA meta-analysis for two (or more) microarray
datasets-tutorial to my own data.
mp=modulePreservation(multiExpr,multiColor,referenceNetworks=1,verbose=3,networkType=signed,
nPermutations=30,maxGoldModuleSize=100,maxModuleSize=400)
However, the error
After installation of R on windows machine and starting the R program, I only
see the R-console but not the RGUI screen... Do I need to re-install or change
some settings?
Tx!
Notice: This e-mail message, together with any attachme...{{dropped:14}}
Thanks
--
View this message in context:
http://r.789695.n4.nabble.com/plot-cdf-tp4633349p4633515.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do
Hi,
i'm not english and i'm not very familiar to R, and i'm asking if you can
help me.
I'm wondering how to create a multivariate normal an then repeat this for a
sample of T=1000, and the save this result.
Thank you very much for your helping
--
View this message in context:
Hello,
I have to solve Binary Quadratic Optimization problem i.e the objective
function is quadratic, constraints are linear and variable are binary. I
checked the quadprog package but it does not seem to be right choice for the
problem.
Can any one suggest what would be the best package to
Dear Sarah,
Thanks very much for the assistance. I will go through what you have suggested
to understand.
Lexi
- Original Message -
From: Sarah Goslee sarah.gos...@gmail.com
To: Lekgatlhamang, lexi Setlhare lexisetlh...@yahoo.com
Cc: r-help@r-project.org r-help@r-project.org
Sent:
Hi,
Try:
?library(chron)
julian()
x-c(1:5) #month
d-c(10:14) #day
y-1970 #year
julian(x,d,y,origin=c(month=2,day=1,year=1970))
[1] -22 10 39 71 102
A.K.
- Original Message -
From: Paloma Moya polilla...@yahoo.es
To: r-help@r-project.org r-help@r-project.org
Cc:
Sent:
Thanks Sarah,
Yes, I really want DCred1, DCred2, etc. I will check and understand your answer.
I appreciate your time and help.
Lexi
From: Sarah Goslee sarah.gos...@gmail.com
Cc: r-help@r-project.org r-help@r-project.org
Sent: Friday, June 15, 2012 12:54 PM
I don't think you need loops at all actually :-) [The main thing to
working with R vs. C is vectorization -- embrace it now and life
will be much better]
You could do something like this:
library(MASS) # Provides a multivariate normal distribution
mvrnorm(100, c(1,5), matrix(c(2,1,1,2), ncol =
Since RExcel imports date/time columns as POSIXt, sticking with that is
probably simpler in this case.
The key I have found that makes the use of POSIXt types relatively
straightforward is to set the TZ environment variable using Sys.setenv() to a
value that is compatible with the timezone of
Hi Sarah,
Sorry for taking more of your time. I thought that before investigating the use
of assign and paste, I should first understand the approach of using 'list()'.
However, it seems to me that the use of list does not work very well, unless I
have wrongly implemented your suggestion. I
Hello,
first of all tank to both of you for your fast response.
Going back to Michael's wonderful ASCII art masterpiece, what we have now is
something like this:
--- JVM ---
JAVA
JDBC
|
|
Algorithm
|
Hello,
On Fri, Jun 15, 2012 at 10:15 AM, R. Michael Weylandt
michael.weyla...@gmail.com wrote:
ii) There does not exist -- to my knowledge -- an implementation of R
which runs on the JVM.
I think he means driving the R framework from Java via JNI. I think
the questions boils down to
On 12-06-15 9:04 AM, Rossenu, Stefaan wrote:
After installation of R on windows machine and starting the R program, I only
see the R-console but not the RGUI screen... Do I need to re-install or change
some settings?
R is a short form for Rterm, so that's what should start. If you want
Dear Researches,
sorry for disturb. I wish to improve my figure in R plotting the relative
frequencies of my data set.
library(lattice)
a - c(0,0,0,1,1,2,4,5,6,7,7,7,7,7,8,8,8,8,9,9,9,9,10,10,11)
histogram(a, xlab=myData)
what i wish to do is:
1) invert the order of X and Y (eg: Precent of
Hello,
first of all thanks to both of you for your fast response.
Going back to Michael's wonderful ASCII art masterpiece, what we have now is
something like this:
--- JVM ---
JAVA
JDBC
|
|
Algorithm
|
On Fri, Jun 15, 2012 at 11:03 AM, angelo.lina...@bancaditalia.it wrote:
Hello,
first of all thanks to both of you for your fast response.
Going back to Michael's wonderful ASCII art masterpiece, what we have now is
something like this:
--- JVM ---
JAVA
On Fri, Jun 15, 2012 at 10:35 AM, Oliver Ruebenacker cur...@gmail.com wrote:
Hello,
On Fri, Jun 15, 2012 at 10:15 AM, R. Michael Weylandt
michael.weyla...@gmail.com wrote:
ii) There does not exist -- to my knowledge -- an implementation of R
which runs on the JVM.
I think he means
How about an alternative:
**|install.packages(sos, repos=http://R-Forge.R-project.org;)|**
library(sos)
(x - back2ForwardSlash())
\002 \001 \102
(xs - strsplit(x, '/')[[1]][-1])
nch - nchar(xs)
while(any((nch2 - nchar(xs - gsub('^0', '', xs)))nch))nch - nch2
xs
I liked your deparse
On 2012-06-15 01:09, faelsendoorn wrote:
Hi,
I have some trouble with the following: I have a table of 7 rows and
6columns. The columns 1,2,3 have information about the number of employees.
The columns 4,5,6 have information about the number of working hours. Each
row, is corresponding with a
Hello,
By RNI, do you mean the Microsoft Raw Native Interface or the
Rengine R Native Interface?
Take care
Oliver
On Fri, Jun 15, 2012 at 12:03 PM, angelo.lina...@bancaditalia.it wrote:
Hello,
first of all thanks to both of you for your fast response.
Going back to
Hello,
I wanted to compute the time differenze between to times:
first =as.POSIXct( 2012-06-15 16:32:39.0025 CEST)
second = as.POSIXct(2012-06-15 16:32:39.0086 CEST)
second - first
The result is
Time difference of 0.006099939 secs
instead of just 0.0061 secs
So R adds aditional numbers
On Fri, Jun 15, 2012 at 05:17:36PM +0530, Anup Bhatkar wrote:
Hello,
I have to solve Binary Quadratic Optimization problem i.e the objective
function is quadratic, constraints are linear and variable are binary. I
checked the quadprog package but it does not seem to be right choice for
On Jun 15, 2012, at 12:49 PM, Julia wrote:
Hello,
I wanted to compute the time differenze between to times:
first =as.POSIXct( 2012-06-15 16:32:39.0025 CEST)
second = as.POSIXct(2012-06-15 16:32:39.0086 CEST)
second - first
The result is
Time difference of 0.006099939 secs
instead of just
see inline.
On Fri, Jun 15, 2012 at 4:33 AM, nata...@orchidpharma.com wrote:
Thanks for your reply. I am sorry and I am bit hurried up to say before doing
a proper due diligence, I have found out that during the optimization the
variables tend to vary the values of the matrix , the function
It can also be affected by the MDI setting in your Rconsole file. If you
have
MDI = yes
Then the RGui runs with the console inside it and the menu bar is on RGui.
If you have
MDI = no
Then you get one the Rconsole and the menu bar is on Rconsole.
The default is generally MDI=yes, but if you
Hello,
A classic of floating-point accuracy is
3/5 - 3/5
[1] 0
3/5 - (2/5 + 1/5)
[1] -1.110223e-16
3/5 - 2/5 - 1/5
[1] -5.551115e-17
Rui Barradas
Em 15-06-2012 18:18, David Winsemius escreveu:
On Jun 15, 2012, at 12:49 PM, Julia wrote:
Hello,
I wanted to compute the time differenze
Hello all:
I am confused about the output from a lm() model with an incomplete
design/missing level.
I have two categorical predictors and a continuous covariate (day) that
I am using to model larval mass (l.mass):
leaf.species has three levels - map, syc, and oak
cond.time has two levels -
Hello,
With Michael's sugestions (I keep forgeting package compiler)
t0 - system.time({ ... variant 3.b ...
#
## Variant 3.c ##
#
install.packages(compiler)
On Fri, Jun 15, 2012 at 8:04 AM, Ingezz irholt...@gmail.com wrote:
Dear Peter,
I am trying to apply the WGCNA meta-analysis for two (or more) microarray
datasets-tutorial to my own data.
mp=modulePreservation(multiExpr,multiColor,referenceNetworks=1,verbose=3,networkType=signed,
Hi David -
Looking at the package documentation I see this:
maxent: A list containing the location of the MAXENT application and
its input files (see
details).
Maybe I was wrong about 'spec' and the malformed argument is 'maxent'.
If I had been constructing it I would have created a
dumpMethods('diag', file='diag.R')
readLines('diag.R')
character(0)
I appreciate the alternative suggested by Ceci Tam, but is this
result a feature or a bug?
More generally, what do you recommend I read to learn about S4
generics? I've read fair portions of Chambers
Hello,
What is the fastest way to do this? I has to be done quite a few times.
Basically I have sets of 3 numbers (as characters) and sets of 3 dashes and
I have to store them in named columns. The order of the sets and the column
name they fall under is important. The actual numbers and the
R programming question, not machine learning, although that's the content.
Apologies to all for whom the following code is eye-burning. I am using
foreach() to run a simulation on a randomForest model (actually conditional
randomForest ... party package). The simulation is in two dimensions.
Ben -
There are most likely faster ways, but
matrix(apply(matrix(rep_vec,ncol=3,byrow=TRUE),1,paste,collapse=''),
ncol=4,byrow=TRUE,dimnames=list(NULL,nms))
seems reasonably fast. (Do you really mean 4 columns and *5* rows?
With rep_vec = rep(vec,times=20), I get 25 rows.)
On Jun 15, 2012, at 3:43 PM, Brent Hendrixson wrote:
Hi David -
Looking at the package documentation I see this:
maxent: A list containing the location of the MAXENT application and
its input files (see
details).
Maybe I was wrong about 'spec' and the malformed argument is
'maxent'.
If
Hello,
Try
vec = c(1,2,3,-,-,-,4,5,6,1,2,3,-,-,-)
nms = c(A,B,C,D)
rep_vec - rep(sapply(split(vec, cumsum(rep(c(1, 0, 0), 5))), paste,
collapse=), 4)
mat - matrix(rep_vec, nrow=5, byrow=TRUE, dimnames=list(NULL,nms))
mat
Hope this helps,
Rui Barradas
Em 15-06-2012 21:11, Ben quant
On Jun 15, 2012, at 20:33 , Rui Barradas wrote:
Hello,
A classic of floating-point accuracy is
3/5 - 3/5
[1] 0
3/5 - (2/5 + 1/5)
[1] -1.110223e-16
3/5 - 2/5 - 1/5
[1] -5.551115e-17
Rui Barradas
Yes. There are only about 16 significant digits in (64 bit) floating point. One
Thanks for your help -- you were absolutely correct. And I apologize
for the poor nomenclature -- when referring to versions I always just
say 'fifteen' or 'twelve point one', so it is too easy to forget the
leading '2.' when typing. Careless of me.
Cheers,
Sarah
- Until June 8th I was
I'm checking out Phil's solution...so far so good. Thanks! Yes, 25 not 5
rows, sorry about that.
Rui - I can't modify rep_vec...that's just sample data. I have to start
with rep_vec and go from there.
have a good weekend all...
Ben
On Fri, Jun 15, 2012 at 2:51 PM, Rui Barradas
1 - 100 of 118 matches
Mail list logo