Displaying 20 results from an estimated 7000 matches similar to: "coerce (list) object to type 'double'"
2010 Feb 22
2
change email subscription
Dear R team,
As this is a university email address with very small inbox limit, can I
please change my R email subscription to another email address instead of
this one? My new email address is wendy2.qiao@gmail.com. I have change my
email in my profile, but seems that does not change my subscription.
Thank you.
Wendy
[[alternative HTML version deleted]]
2011 Apr 10
3
count number of TRUEs in each row
Hi all,
I have a huge matrix of TRUE/FALSE table like following, and I want to count
the number of TRUEs in each row. Instead of looping through each row and do
length(Z[Z==TRUE]), I am wondering if there is an easier way of doing this.
[,1] [,2] [,3]
[1,]TRUE FALSE FALSE
[2,]FALSE TRUE TRUE
Thank you in advance.
Wendy
--
View this message in context:
2010 Feb 21
4
replicate matrix
Hi all,
I have a matrix, for example
[,1] [,2]
[1,] 1 3
[2,] 4 6
I want to replicate the matrix twice and add an extra column at the end,
which is
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[1,] 1 3 1 3 1 3 2
[2,] 4 6 4 6 4 6 5
I found 'rep' only works for vector. Does anyone know how to replicate a
matrix, and append the matrix?
2003 Jan 06
6
ssh 3.1p1 problems on SX-6...
Hello,
We are porting openssh-3.1p1 onto SX-6 running on SuperUX.
We landed into problem when we started running sshd with
the default encryption settings. As you would have already
seen on this mailing list.
Basically we are facing two problems (both client and servers
run on SX):-
1) If the we use the default encryption algorithm aes128-cbc
then we get a Bad Packet length problem on
2011 Nov 01
4
round up a number to 10^4
Hi all,
I have a list of numbers, e.g., X = c(60593.23, 71631.17, 75320.1), and want
to round them so the output is Y = c(60000, 80000, 80000). I tried
Y<-round(X,-4), but it gives me Y = c(60000, 70000, 80000). Do anybody know
how to round up a number to 10^4?
Thank you in advance.
Wendy
--
View this message in context:
2011 Nov 01
2
annotate histogram
Hi all,
I want to make a histogram like the one show
http://nar.oxfordjournals.org/content/39/suppl_1/D1011/F1.expansion.html
here , but I did not figure out how to add the red marks at the bottom of
the bars. Could anybody help? Thank you very much
--
View this message in context: http://r.789695.n4.nabble.com/annotate-histogram-tp3963960p3963960.html
Sent from the R help mailing list archive
2012 Jul 20
1
fitting Ornstein-Uhlenbeck process by MAXIMUM LIKELYHOOD
Dear friends
i am trying to fit an Ornstein-Uhlenbeck process by MAXIMUM LIKELYHOOD
method.
i found these formulas on
http://www.sitmo.com/article/calibrating-the-ornstein-uhlenbeck-model/
this is the mean-reverting process
http://r.789695.n4.nabble.com/file/n4637271/process.txt process.txt
and this is the script that i am using.......
ouFit.ML=function(spread) {
n=length(spread)
2019 Sep 23
2
What is the best way to loop over an ALTREP vector?
Sorry for post a lot of things, for the first part of code, I copied my C++
iter macro by mistake(and you can see an explicit type casting). Here is
the macro definition from R_exts/Itermacros.h
#define ITERATE_BY_REGION_PARTIAL(sx, px, idx, nb, etype, vtype, \
strt, nfull, expr) do { \
* const** etype *px = DATAPTR_OR_NULL(sx); *
2006 Jul 03
2
help a newbie with a loop
Hi,
I am new in R and stumbled on a problem my (more experienced) friends
can not help with with. Why isnt this code working?
The function is working, also with the loop and the graph appears,
only when I build another loop around it (for different values of p) ,
R stays in a loop?
Can't it take more then 2 loops in one program?
powerb<-function(x,sp2,a,b,b1,m)
{
2019 Sep 24
2
What is the best way to loop over an ALTREP vector?
Hi Bob,
Thanks for sending around the link to that. It looks mostly right and looks
like a useful onramp. There are a few things to watch out for though (I've
cc'ed Romain so he's aware of these comments). @romain I hope you taake the
following comments as they are intended, as help rather than attacks.
The largest issue I see is that the contract for Get_region is that it
*populates
2006 Dec 29
2
Survfit with a coxph object
I am fitting a coxph model on a large dataset (approx 100,000 patients), and
then trying to estimate the survival curves for several new patients based
on the coxph object using survfit. When I run coxph I get the coxph object
back fairly quickly however when I try to run survfit it does not come
back. I am wondering if their is a more efficient way to get predicted
survival curves from a coxph
2011 Dec 16
1
[Bug 8665] New: Crash in free_xattr(), from recv_generator()
https://bugzilla.samba.org/show_bug.cgi?id=8665
Summary: Crash in free_xattr(), from recv_generator()
Product: rsync
Version: 3.1.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: core
AssignedTo: wayned at samba.org
ReportedBy: chris at onthe.net.au
2010 Sep 14
4
Problems with "pdf" device using "plot" "glht" function on "multcomp" library.
Hi R users:
I have de following data frame (called "Sx")
Descripcion Nitratos
Cont85g 72.40
Cont85g 100.50
Cont85g 138.30
Cont80g 178.33
Cont80g 79.01
Cont80g 74.16
Cont75g 23.70
Cont75g 15.80
Cont75g 16.20
Patron80g
2008 Feb 16
1
Evaluate function on a grid
I have a function in R^2, say
f <- function(x,y) { ...skipped }
I want to plot this function using contour, persp. wireframe, etc. I know
that the function has a global
minimum at (x0, y0)
The naive approach is to evaluate the function on the outer product of two
arrays, like this:
sx <- c(seq(-3, x0, len = 100), seq(x0, 3, len = 100)[-1])
sy <- c(seq(-3, y0, len = 100), seq(y0, 3,
2010 Nov 18
1
problems with folders in another server (2nd. issue)
Hello ppl,
we are using two servers, with dovecot 2.0.5, Sx and Sy,
with:
cat dovecot-ldap-ext:
...
pass_attrs = uid=user,userPassword=password,=y=proxy,mailHost=host
...
When I access server Sx via IMAP I see all my folders.
When I access server Sy via IMAP it do not proxy to Sx.
I want to see my IMAP folders independently of the server.
any help?
--
:) cumprimentos
2015 Sep 14
3
Optimization bug when byte compiling with gcc 5.2.0 on windows
When building R-devel with gcc 5.2.0 (mingw-w64 v4) on Windows, make
check fails reg-tests-1b.R at the following check:
x <- c(1:2, NA)
sx <- sd(x)
!is.nan(sx)
Here 'sx' should be 'NA' but it is 'NaN'. It turns out this problem
only appears when the function is byte compiled with optimization
level 3:
mysd <- function (x, na.rm = FALSE)
sqrt(var(if
2019 Apr 04
2
[RFC] NEC SX-Aurora VE backend
Hello,
we’d like to propose the integration of a new backend into LLVM: NEC
SX-Aurora TSUBASA Vector Engine (VE). We hope to get some feedback here
and at EuroLLVM about the path and proper procedure of merging.
The SX-Aurora VE is a Vector CPU on an PCI-E Accelerator card. It has
48GB memory from six HBM2 stacks, accessible with 1.2TB/s bandwidth, 8
cores with vector and scalar units, each.
2005 Feb 28
2
A problem about outer()
Dear all,
I have something about function outer() that I can't understand. Just see the following example. The two NaNs are due to 0/0, but I can't figure out the cause of the last two errors. I wonder if some one can explain this for me.
___________________________________________________________________
> sx=rbinom(10,1,0.5);ot=rbinom(10,1,0.5);ag <- rbinom(10,100,0.3);ho <-
2012 Oct 15
2
[LLVMdev] Alternate instruction encoding for subtargets
Hello,
I have a compiler in LLVM 2.9 for the KCPM3 processor. I'd like to
create a subtarget for the new cpu version called KCPSM6. Besides a
couple of new instructions which are not important at the moment, the
KCPSM6 cpu has different instruction opcodes. Semantically the
instructions are the same, hence I'd like to keep all the lowering and
pattern matching stuff unmodified
For
2005 Jun 15
2
need help on computing double summation
Dear helpers in this forum,
This is a clarified version of my previous
questions in this forum. I really need your generous
help on this issue.
> Suppose I have the following data set:
>
> id x y
> 023 1 2
> 023 2 5
> 023 4 6
> 023 5 7
> 412 2 5
> 412 3 4
> 412 4 6
> 412 7 9
> 220 5 7
> 220 4 8
> 220 9 8
> ......
>
Now I want to compute the