Displaying 20 results from an estimated 4000 matches similar to: "Skipping rows and columns in large matrix"
2007 Oct 16
1
error in sample ()
I am trying to get a random matrix based on an original matrix called
disperser.mx, with dimensions 30x73
When I write the following code:
>scramble = sample (disperser.mx)
>newmat = matrix(scramble, nrow=30)
I get the following warning message and a very weird matrix with 30 rows but
only 3 columns shown below:
Warning message:
data length [73] is not a sub-multiple or multiple of the
2007 May 02
2
NAs introduced by coercion in dist()
I work with Windows and use R version 2.4.1. I am JUST starting to learn this
program...
I get this warning message 'NAs introduced by coercion' while trying to
build a distance matrix (to be analyzed with NMDS later) from a 336 x 100
data matrix. The original matrix has lots of zeros and no missing values,
but I don't think this should matter.
I searched this forum and people have
2008 Jan 18
2
plotting other axes for PCA
Hi R-community,
I am doing a PCA and I need plots for different combinations of axes (e.g.,
PC1 vs PC3, and PC2 vs PC3) with the arrows indicating the loadings of each
variables. What I need is exactly what I get using biplot (pca.object) but
for other axes.
I have plotted PC2 and 3 using the scores of the cases, but I don't get the
arrows proportional to the loadings of each variables on
2002 May 03
3
skipping columns with read.fwf?
I have a file in fwf. It is rather large, about 40,000 rows and 40 variables (columns). I only need about 10 variables form the data set for the analysis at hand. Unfortunately, these 10 variables are not contiguous in the file, for example, the first is position 1-8, the next position 25-27, then 40.
Is there a way to read the selected varaibles that I need without reading in the entire data
2007 Oct 26
3
linking Tinn-R to a new R version
Hi all,
Can anyone please tell me how to start R from Tinn-R's "Toogle start/close
Rgui" button, after I've updated to a new version of R? It seems like Tinn-R
keeps looking for the previous version of R. I have updated R twice already
since I started using Tinn-R and I haven't been able to make that button
work again. It tells me "The specified file was not
2005 Mar 29
4
slide show with R
Trying to use R to build an interactive "slide show", to be displayed on a
projector. The purpose of the presentation is to show how one could
construct a simple graph using R. It is meant as a general overview rather
than as detailed instruction.
For example, something like the following sequence of commands. At
lecture time, I want the interpreter to read these commands one at a
2019 Jun 26
2
Problem in doveadm import dovecot 2.2
Dear,
I always used dovecot in version 2.0 and in the last month i update my
servers to dovecot 2.2 but now i have problems with comand dovecot import,
not works for me, bellow i put 2 examples used in my tests in boths cases
not works for me.
Someone already saw some case similar or can help me with this ?
doveadm import -u teste at aaaaa.com mdbox:~/mdbox-backup "" mailbox INBOX
from
2017 Jan 06
3
Issue with handling of 480 DND
Hi List,
we're calling a sip phone from our Asterisk Server, and try to add logic
depending on the dialstatus
Stripped down example;
exten = 494XXXXXXXXX,n,Dial(SIP/4120089,15,w)
exten = 494XXXXXXXXX,n,Goto(98-${DIALSTATUS},1)
exten = 494XXXXXXXXX,n,Hangup()
.....
exten = 98-BUSY,1,NoOp(Busy)
exten = 98-BUSY,n,ExecIf($["${Voicemail}" =
2012 Jul 25
3
creating Pivot
Hi Friends,
I'm new to R.I have a data frame :
xxx having columns color name values
R XXX 10
G YYY 4
Y ZZZ 5
G XXX 2
2009 Aug 10
2
strsplit a matrix
Dear all,
I am trying to split a matrix into 2 as efficiently as possible.
It is a character matrix:
1 2 3
1 "2-271" "2-367" "1-79"
2 "2-282" "2-378" "1-90"
3 "2-281" "2-377" "1-89"
I want to make 2 matrices from this, as succinctly and efficiently as
possible.
I've tried such
2013 Jul 10
2
Replacing part of delimited string with R's regex
I have the following list of strings:
name <- c("hsa-miR-555p","hsa-miR-519b-3p","hsa-let-7a")
What I want to do is for each of the above strings
replace the text after second delimiter with "zzz".
Yielding:
hsa-miR-zzz
hsa-miR-zzz
hsa-let-zzz
What's the way to do it?
[[alternative HTML version deleted]]
2012 Jul 08
3
list.files() find files beginning with a .
Hello,
when I use list.files with recursive = TRUE and all.files = TRUE, R returns
a list of strings/paths.
>From all those strings I want to keep only the ones starting with a .
I tried using grep to achieve that. However, the problem is that because of
the recursive list.files parameter,
for some files beginning with a . there is a path attached. I think it is
not as simple as it looks
2010 Jun 10
1
Re :help to aggregate data
Dear All,
I have the data some thing like this, I am showing here three days data
only:
> dummy.data <- read.table(file='dummy.txt',sep='', header=TRUE)
> dummy.data
StDate Domaindesc Logins
1 05/01/10 xxx 10
2 05/01/10 xxx 45
3 05/01/10 xxx 2
4 05/01/10 yyy 45
5 05/01/10 yyy 20
6 05/01/10 yyy
2005 Nov 22
1
Iproute2 src mangling problems
Hi,
I''m having an issue with changing the source address of packets
origininating from a specific user using a combination of iptables and
iproute2. We want to change packets originating from a specific
service so that they originate from that service''s IP address, so that
we can move it to a different physical server and have the packets
appear to come from the same
2011 Jan 05
1
Asterisk replying to wrong port for NOTIFY messages
See the following SIP trace.
Where in the world does Asterisk get port 1025 to respond to?
This is asterisk 1.6.x.
Thanks.
-- James
<--- SIP read from zzz.zzz.zzz.44:9363 --->
NOTIFY sip:pbx1.mydomain.com SIP/2.0^M
Via: SIP/2.0/UDP 192.168.1.140:9363;branch=z9hG4bK-b9a860d3^M
From: "xxx-xxx-xxxx" <sip:xxxxxxxxxx at pbx1.mydomain.com>;tag=467525dd6fac949do0^M
To:
2009 Nov 13
6
replace a whole word with sub()
Dear all,
I cannot figure out how to solve a small problem (well, not for me), surely somebody can help me in few seconds.
I have a series of strings in a vector X of the type "xxx", "yyy", "zzz", "IgA", "IgG", "kkk", "IgM", "aaa".
I want to substitute every ENTIRE string beginning with "Ig" with
2005 Aug 29
1
Belkin and newhidups
Hi Peter,
I got all your patches and applied them, and I wanted to say kudos for a
great job done.
This is the output of upsc that I'm getting right now.
I had the same issue when using any cvs version (from two weeks ago)
that made my UPS go into a state where it wasn't functioning normally
(checking the kernel log shows that it cannot be connected and I had
around a page of DEVFS_USB
2019 Sep 05
4
DNS question
Dear list,
we use debian stretch with Louis's 4.10.5 packages and bind9_dlz
backend. There are two AD DCs with redundant ISC DHCP servers on them.
The DHCP servers are updating the DNS along the lines of
https://wiki.samba.org/index.php/Configure_DHCP_to_update_DNS_records_with_BIND9
but with nsupdate commands replaced by suitable calls to "samba-tool" (I
had problems getting the
2008 Oct 21
3
OT: Setting a CentOS to gateway a private IP address
This is mildly off topic since it has more to do with TCP/IP networking
than with CentOS per se. However, at the risk of ruffling a few feathers
I would like some advice on how to resolve the following routing problem:
Given:
dual homed host running CentOS-5.2 with
eth0 = 2xx.yyy.zzz.23
eth1 = 192.168.219.1
and a Cisco gateway at 2xx.1xx.y7y.1 with the following networks:
interface
2009 Apr 06
4
R package: Where to put code to Run Once Only?
Is there a specific place where we can place code to run once only in a
package?
I have code that switches based on Sys.info()[["nodename"]] - but since this
just about never changes, I would like to run it only once when someone
runs:
require( mypackage ) or library( mypackage )
I'm tempted to have some free-floating code in global space (in one of my
package's .R files), but