Displaying 20 results from an estimated 10000 matches similar to: "to remove an error with log(zero)"
2009 Dec 11
3
how to creat a matrix
Dear R family
I am attempting to create a matrix. e.g.,
0 0 0 0 1
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
How could I write a R program?
Later I want to extend it to a N by N case.
Thanks in advance
best
Moohwan
2010 Jul 05
4
To detect the location of duplicate values
Dear R family,
I have a question about how to detect some duplicate numeric observations.
Suppose that I have two variables dataset.
order value
1 0.52
2 0.23
3 0.43
4 0.21
5 0.32
6 0.32
7 0.32
8 0.32
9 0.32
10 0.12
11 0.46
12 0.09
13 0.32
14 0.25
;
Could you help me indicate where the duplicate observations in a row
(e.g., 0.32) are?
best,
moohwan
2009 Dec 11
2
How to calculte the power of a matrix
Dear R family
I have a following question.
Suppose I have a matrix as follows, for instance:
tau=
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1
1 0 0 0 0
I want to calculate (-m) power of tau, for example, m=893.
When I run tau^2, the outcome is just tau.
Any help would be appreciated.
thanks in advance.
best
moohwan
2017 Aug 18
1
A question about for loop
Dear R users,
I have the following codes:
zeta <- rep(1,8)
n <- 7
for (i in 1:2){
beta <- zeta[1:n+(i-1)*(n+1)]
print(beta)
parm <- zeta[i*(n+1)]
print(parm)
}
###################
The output is as follows:
[1] 1 1 1 1 1 1 1
[1] 1
[1] NA NA NA NA NA NA NA
[1] NA
#######################
The outcome I want to get is:
[1] 1 1 1 1 1 1 1
[1] 1
[1] 1 1 1 1 1 1 1
[1] 1
How could I get the
2009 Dec 07
1
Autocomplete for phrases
Hi all.
We are trying to use Xapian to index the titles of around ten million
documents (music catalogue) and then do auto-complete style search on
this index. After poking around we can't quite get the combination of
QueryParser flags and search query that will give back the results we
want. The closest we have can take a very long time (because it is
searching for, and building a list of,
2010 Jul 05
2
to remove duplicate values
Dear R family,
Suppose I have two series.
order value
1 0.52
2 0.23
3 0.43
4 0.21
5 0.32
6 0.32
7 0.32
8 0.32
9 0.32
10 0.12
11 0.46
12 0.09
13 0.32
14 0.25
For these two series, I figured out the way to detect the locations of
duplicate values.
The next thing to do is remove the repeated values except for a value
that would not be next to each other.
In other words, while keeping the
2010 Jul 21
1
Question about allocMatrix error message
Dear R family,
I faced a technical problem in r coding.
#s=t(dev)%*%dev/(nr-1) # dev (100,000 by 2) stands for
deviation from the mean
#sinv=solve(s)
#t2=diag(dev%*%sinv%*%t(dev))
I got an error message at t2 statement:
Error in diag(dev %*% si %*% t(dev)) : allocMatrix: too many elements specified
Please let me know if there is a way to overcome this problem.
best
moohwan
2011 Jun 18
1
double integral calculation
a=[0.1,0.2,0.1,0.3,0.4]
b=[0.2,0.3,0.1,0.2,0.5]
c=[1,1,1,1,1]
log(c+a-x*b) where x=unknown scale variable.
int=$$log(c+a-x*b)dadb, where $ denotes integral sign.
Actually, how could I calculate the integral's approximation?
double summation?
best,
moohwan
2009 Dec 11
1
How could I find the inverse of a matrix?
Dear R family
I have a following question.
Suppose I have a matrix as follows, for instance:
tau=
0 0 0 0 1
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
I want to have the inverse of the above matrix and then add some
exponent to it. That is, I want to calculate tau to the (-m). For
example, m=893.
Thanks in advance
Best regards
Moohwan Kim
2009 Dec 13
1
too large dimension problem
Dear R family
When I run the command below, the error message came up. It seems like
the problem is about computer capacity.
It would be appreciated if anyone could give me a solution.
###########
> N <- 415884
> tau <- diag(1, N)[c(N, 1:(N - 1)),]
Error in array(0, c(n, p)) : 'dim' specifies too large an array
Best
Moohwan
2010 Jun 04
2
Convolution vector to be derived
I want to generate the following outcome using convolution of two sequences.
x <- c(1,2,3,4,5)
y <- c(6,7,8,9)
The resulting convolution vector is
6
19
40
70
100
94
76
45
When using convolve(), it is hard to produce the result above.
Would you help me out to get that?
Best regards
Moohwan Kim
2004 Aug 06
3
Re-reading config file not working?
I sent this before but I figured I'd send it again since my current
method is rather kludgey...
Whenever I try to send a HUP to icecast it always fails when re-reading
the config file:
EROR event/event_config_read Error parsing config, not replacing existing config
However I know the config is good because the server starts up without
any issues (right now I've had to resort to just
2013 Feb 05
3
Wierd question - Give me your opinion please
Client - Not for Profit in the Middle of the Jungle/Rain Forrest
Infrastructure - Datacenter is Non Climate Controlled, Prone to Flooding,
and has Sketchy Power, LAN - NEW Cabling in main Office building, Hodge
Podge of DYI wiring across remaining buildings. Phones - Total of about 50
extensions. Only about 25 - 30 phones will be IP phones, 20-30 more will
have to be analog due to the distance.
2019 Sep 09
2
Off-site cloud backup (eg Amazon S3, Wasabi)
I?d like to synchronise our mail store to an Amazon S3 bucket or similar, for protection from ransomware.
Server is running on macOS with maildir.
Should I use a Dovecot process, rsync, a Mac app like Arq or Jungle Disk, or something else?
Anyone have experience or opinions on this?
Thanks,
James.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
2005 Oct 27
6
Mail Server
Hi,
I need to setup a new mail server and before I got my feet wet or losing in the configurations jungle, I really need some advice from the gurus here for what the best software to used for the mailserver base on CentOS 4.x setup.
The objective is, the mailserver will be easy to setup, maintained and have some
1. database backend for storing user info ( mysql? )
2. spam and antivirus
2003 Jul 07
2
Limiting bandwidth usage - where to begin
Hi,
I am very new in this list..
I want each of my internet users to be limited in
his/her usage of bandwidth. The limitation will be
done in my squid (linux) box, as they all have to be
authenticated by squid before going to the internet
jungle..
Then anybody here could tell me where to begin to do
such thing ?
Any idea/solution would be very appreciated
TIA
regards,
aqil
2019 Oct 10
4
[cfe-dev] GitHub Migration Schedule and Plans
On 10/09/2019 11:05 PM, Mehdi AMINI wrote:
>
>
> On Wed, Oct 9, 2019 at 10:16 PM Tom Stellard via cfe-dev <cfe-dev at lists.llvm.org <mailto:cfe-dev at lists.llvm.org>> wrote:
>
> Hi,
>
> We're less than 2 weeks away from the developer meeting, so I wanted to
> give an update on the GitHub migration and what's (hopefully) going to
>
2008 Sep 01
2
Interpolation Problems
Dear all,
I'm trying to interpolate a dataset to give it twice as many values (I'm giving the dataset a finer resolution by interpolating from 1 degree to 0.5 degrees) to match that of a corresponding dataset.
I have the data in both a data frame format (longitude column header values along the top with latitude row header values down the side) or column format (in the format latitude,
2007 Mar 15
1
How to use result of approxfun in a package?
I am working on a project where we start with start with 2 long,
equal-length vectors, massage them in various ways, and end up with a
function mapping one interval to another. I'll call that function
"f1." The last step in R is to generate f1 as the value of the
approxfun function. I would like to put f1 into a package, but
without having the package redo the creation of
2016 May 01
2
Storage of byte code-compiled functions in sysdata.rda
Hi r-devels,
we are seeing a new problem with our packages RobAStRDA (just new on CRAN, thanks
to Uwe and Kurt!) and RobExtremes (to be submitted).
It must be something recent with the way you internally treat/store byte-code compiled
functions, as we have no problems with R-3.1.3, but do see an "Error in fct(x) : byte code
version mismatch" with R-devel SVNrev r70532.
Background: