Displaying 20 results from an estimated 7000 matches similar to: "Memory usage of R on Windows XP"
2009 May 14
3
memory usage grows too fast
Hi All,
I have a 1000x1000000 matrix.
The calculation I would like to do is actually very simple: for each row, calculate the frequency of a given pattern. For example, a toy dataset is as follows.
Col1 Col2 Col3 Col4
01 02 02 00 => Freq of ?02? is 0.5
02 02 02 01 => Freq of ?02? is 0.75
00 02 01 01 ?
My code is quite simple as the following to find the pattern ?02?.
2005 Jan 21
6
Avoiding a Loop?
Dear R-Helpers,
I have a matrix where the first column is known. The second column is
the result of multiplying this first column with a constant "const". The
third column is the result of multiplying the second column with
"const".....
So far, I did it like this (as a simplified example):
nr.of.columns <- 4
myconstant <- 27.5
mymatrix <- matrix(numeric(0), nrow=5,
2007 Nov 20
1
Process multiple columns of data.frame
Hello,
How do I do the following more concisely?
Bout[is.na(Bout$bd.n), 'bd.n'] <- 0
Bout[is.na(Bout$ht.n), 'ht.n'] <- 0
Bout[is.na(Bout$dbh.n), 'dbh.n'] <- 0
Would the form of such a command be different
between numeric, character and factor columns?
. . . between data.frames and matrices?
Thanx, DaveT.
*************************************
Silviculture
2011 Jan 21
2
ordering a vector
Hi,
is there a R function that order a matrix according to some criteria
based on the rows(or cols) of that matrix?
For example, let's say that my matrix S is composed by n rows S_1,
S_2,.., S_n and that I compute some real value g_i=g(S_i) for each
row.
Then I want to order this set of g_i (from smaller to bigger) and
order the correspondent row to the new position.
Is it possible (apart
2011 Apr 01
1
Fisher's test
I have a matrix with 2 columns and I want to do fishers exact test for these
with the totals for each row being 100 say.
The data has the form:
23 12
32 21
12 2
and these represents the tables:
23 12
77 88
32 21
78 79
12 2
88 98
How do I use apply to speed up aclculation of the fisher.exact test?
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2015 Apr 01
2
Disk space usage with mdbox
Hello,
I am using dovecot with mdbox+sis and I notice an ever increasing disk
space usage since I converted mailboxes from Maildir to mdboxes. I have
checked with a user and while it actually uses only 65K, his mdbox files
on disk are more than 6G. The backup of his mailbox is just 64K. Any
suggestions ?
Below are some relevant commands:
[root at mail ~]# doveadm quota get -u test
Quota
2015 Apr 02
2
Disk space usage with mdbox
Yes I have done it, it is the third command I have run, without any change.
a.
On 02/04/2015 09:53 ??, Urban Loesch wrote:
> Did you "purged" the deleted mails for this user?
> On mdbox you must run "doveadm purge -u $USER" to whipe out any as deleted marked mails etc.
>
> Details: http://wiki2.dovecot.org/Tools/Doveadm/Purge
>
> I use a nightly cronjob wor
2011 Jul 20
3
select element from each row of the matrix
I have a 5 column matrix like
12 10 8 6 3
10 9 8 7 5
14 NA 4 NA NA NA
15 NA 10 NA 5
...
I want to select the position of the first entry for each row <=5
for example, for the first row, I want to select the last element and return
its position as 5;
for th e third row, I want to select the third element and return its
position as 3;
similarly for the 4th row, I want to select the fifth
2015 Apr 03
2
Disk space usage with mdbox
Shot in the dark here...haven't tried it myself so no promises. There's
probably a much better way to do this but sometimes a little "brute
force" helps.
Theoretical steps:
1. Stop all mail processes - both SMTP and IMAP.
2. Use "doveadm sync" to backup the user mailbox, e.g.,
doveadm backup -u user mdbox:/tmp/usermail
3. Verify /tmp/usermail looks reasonable
2004 Jan 10
5
Asterisk + BudgeTone (behind NAT)
I'm using Asterisk on a open server (no firewall or NAT) and trying to
communicate with a Grandstream BudgeTone 102 SIP phone which is behind
NAT. The BudgeTone is at firmware level 1.0.4.30 and Asterisk is from CVS
about a week ago. My problem is that I'm only getting half-duplex
communication -- I can hear voice from the Asterisk server but the server
does not understand any voice from
2017 Apr 30
1
NAS SMB server not accepting packets > 65k size. Does SMB2->Negotiate_Protocol_Response->Max_Write_Size = 65536 Matters?
Hello,
This is situation:
* [netApps SMB-server] [RHEL-7.1-Client]*
| =SMB 2/3= |
| sending
data>65k Fail
| sending
data<65k Passes
Max Write/Read Size[65535]
2001 Oct 09
3
Unlisting while preserving object types?
Hi
A toy example is probably the least ambiguous way of explaining what I'm
trying to do.
> library(ts)
> zz<-list(a=rnorm(100),b=rt(100,3))
> zz.spec<-lapply(zz,spectrum,plot=F)
> summary(zz.spec)
Length Class Mode
a 15 spec list
b 15 spec list
I'm looking for an elegant way to fetch components of the sub-lists a and b
of zz.spec;
e.g. to make a matrix
2004 Aug 05
1
R interface to Python (in Windows)
I put a copy of R 1.8.1 for Windows on our FTP site at:
ftp://ftp.odot.state.or.us/outgoing/Test/. It should be there for a few
days before it gets deleted.
Benjamin Stabler
Transportation Planning Analysis Unit
Oregon Department of Transportation
555 13th Street NE, Suite 2
Salem, OR 97301 Ph: 503-986-4104
-----Original Message-----
From: Peter Wilkinson [mailto:pwilkinson at videotron.ca]
2006 Apr 01
1
Using vectorization instead of for loop for performing a calculation efficiently
I am trying to write an efficient function that will do the following:
Given an nxm matrix, 10 rows (observations) by 10 columns (samples)
for each row, test of all values in the row are greater than a value k
If all values are greater than k, then set all values to NA (or something),
Return an nxm matrix with the modified rows.
If I do this with a matrix of 20,000 rows, I will be waiting until
2008 Aug 22
1
dimension values of an array
Question:
I created an array with 164 columns and 70 rows.
I would like every column to have unit value 1
and the rows 0.1, 0.2, 0.3 up to 7. How can I define that?
Thanks for your help!
Good weekend!
Akko
_________________________________________________________________
[[alternative HTML version deleted]]
2010 Jun 02
3
writing a matrix in a file
Hi,
I want to write a matrix (n*m) in a file (Text file) such that the file
will be as Result file (below).
I use the below command but it write all numbers in one column,
> write(paste(matrixname),file="test.txt",append=TRUE)
how can I do this?
Result file:
5 5 -1 -1 -1 -1
8 8 2 7 6 5
6 6 8 2 7 5
Matrix:
[,1] [,2] [,3] [,4] [,5]
2013 Feb 27
2
Sporadic Issues
My last sentence still aplies to the bitrate.
We usually use 80kbps, but sometimes we have used 64kbps (e.g. when
sourcing from a cellular network).
With music you can get the difference, but with voice there's no need to
use more bitrate unless you want more quality in the audio itself.
--
Xabier Oneca_,,_
El 27/02/2013 15:19, "Jos? Luis Artuch" <artuch at speedy.com.ar>
2012 Apr 04
3
Remove carriage return in writing tab-delimited file.
Having problems with the write.table function. I can write a tab delimited
file just fine, but for each line in my matrix its inputs a carriage return
when i dont want it to.
For example my matrix might be:
ID V1 V2 V3
FARY1004 1 2 3
FARY2067 2 3 1
FARY4587 2 2 2
And I want the written File to be:
FARY1004 1 2 3FARY2067 2 3 1FARY4587 2 2
2
TIA
--
View this
2004 Aug 02
1
Very strange ACL issue
Hello,
I upgraded from Samba 3.0.2 to 3.0.4 on my Redhat Enterprise system and am
now seeing something very strange with POSIX ACL?s. We have several shared
directories setup with per-directory group permissions (In other words each
directory has its own group in active directory). This way if we want to
give a user access to a directory we just add them to the group. After
upgrading too 3.0.4
2002 Aug 22
3
correlation
Dear All,
I have a file (a matrix) on which I have to compute the correlations.
The function "cov" compute the correlations
between the columns of a matrix, but I want to compute the correlations
between the raws.
Can somebody say to me how I can carry out that?
Thanks
Laurence
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list --