similar to: modifying patterns in a matrix

Displaying 20 results from an estimated 3000 matches similar to: "modifying patterns in a matrix"

2008 Sep 15
1
How to plot a matrix of intervals
Dear R-users, I have some nonstandard data set which I would like to plot but don't know how to do it in R. The data is in a matrix where the rows represent samples and the columns represent locations. The entries of the matrix are 0's and 1's, where 1 represents an event and 0 represents a non-event. e.g. aberrations <- matrix(rbinom(1000, 1, 0.8), nrow=20, ncol=50,
2008 May 22
1
Extracting slots from ROCR prediction objects
Hi, I have an object from the prediction function from the ROCR package and I would like to extract one of the slots from the object, for example the cutoffs slot. However the usual techniques ($, [["name"]]) of subsetting don't work. How can I assess the lists in the slots? Here is an example of what I am working with: library(ROCR) data(ROCR.simple) pred <-
2008 Jul 11
1
reading in a subset of a large data set
I have a huge dataset for which I only want to read in a subset of it. Is it possible to use read.table to read in only a subset of the data? For example, something like read.table('~/data.txt', subset = chromosome=='1' ) If not, then why not? This seems to be a feature available in all other statistical software. Thanks, Stacey
2009 Apr 02
1
Sweave, using xtable in a loop doesnt work?
I have a data.frame, data, with 30 factor variables. I would like to tabulate the frequencies of each variable and output to a tex file using Sweave. Here is my code chunk: <<label=tab, echo=FALSE, results=tex>>= library(xtable) for(j in 1:30){   cap <- paste("Frequency counts for Q",j,".", sep="")   xtable(t(table(data[,j])),caption=cap) } @
2003 Nov 14
2
installing the next version of R while in an older version
Hello - I am a fairly new user of R. I currently have R1.7 installed. I tried to install the KernSmooth package but a message tells me I need R1.8. Is there a way to update to R1.8 while in R1.7 in the same manner that I can use "update.packages", or do I have to install R1.8 in a separate directory and re-install the many packages I have already installed in R1.7? Thanks in advance for
2007 Mar 08
2
Removing duplicated rows within a matrix, with missing data as wildcards
I'd like to remove duplicated rows within a matrix, with missing data being treated as wildcards. For example > x <- matrix((1:3), 5, 3) > x[4,2] = NA > x[3,3] = NA > x [,1] [,2] [,3] [1,] 1 3 2 [2,] 2 1 3 [3,] 3 2 NA [4,] 1 NA 2 [5,] 2 1 3 I would like to obtain [,1] [,2] [,3] [1,] 1 3 2 [2,] 2 1 3
2005 Dec 13
3
help with writing function
I'm trying to write a function that takes a vector of length n and then takes the first value of the vector i.e j=1 and forms a new vector of length n (i.e replicate the first value n times). This function will then calculate the absoulte difference of the original vector and the new vector and store the results omitting the difference between the value and itself. This function should
2010 Oct 14
2
declaring GPL license
Hi all, I'm currently writing an R package and want to declare a GPL2 license. According to the license agreement, I'm supposed to display: "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ... See the GNU General Public License for more details."
2007 Jul 26
3
Newbie Advice on Asterisk and Linux
HI All, I?m new to Asterisk and also to Linux. I have a large IVR project that I?m about to embark on. I?m new to programming; new to Linux and new to Asterisk. I think I?m about to climb a steep learning curve. I have an existing IVR which is getting on for nine years old and is no longer supported by my vendor. I intend to replicate the system almost as is and then add additional
2001 Oct 26
3
question about anova() output
Hello, I am getting output from anova() and summary(aov()) that depends on the order of the factors in the fitted model object, and this has me baffled. I see this dependency with the data.frame below but not with an example (table 6.4) from Montgomery's DOE book. This is with R 1.3.0 on Debian GNU-Linux. Where have I gone wrong? > centerpts run sample CH50mg 1 day1 dev126 0.56 2
2004 Mar 26
3
Error Message?
I'm running samba-3.0.2-7.FC1 on a Fedora Core 1 box. I see this error message in the log file for each user on my network; [2004/03/26 10:55:35, 0] rpc_server/srv_util.c:get_domain_user_groups(372) get_domain_user_groups: primary gid of user [glen] is not a Domain group ! get_domain_user_groups: You should fix it, NT doesn't like that What does it mean? Martin Stacey IT Support
2013 Feb 02
1
repeating autocovariate functions
Hi there, Just wondering why my post was rejected? cheersRachel Subject: repeating autocovariate functions From: r-help-owner@r-project.org To: moyble@hotmail.com Date: Sat, 2 Feb 2013 02:56:27 +0100 Message rejected by filter rule match --Forwarded Message Attachment-- Date: Fri, 1 Feb 2013 17:56:14 -0800 From: moyble@hotmail.com To: r-help@r-project.org Subject: repeating autocovariate
2003 Nov 20
3
minimalist rsync on windows
Hi, Is the rsync-minimalist still supported for windows? I am using Windows XP Home. I am testing, to get a solution for a client. The minimalist looked very nice--a cygwin.dll and an rsync and an ssh.exe. However, I can connect with ssh, but not with rsync over ssh using these files. I have also tried plink from putty with this rsync. I gather from a lot of the messages that the consenus is
2002 Jan 02
2
dos command line
All, I am an Splus user trying to use R for a specific project where the client needs the programs to be run in R. Before the holidays, I figured out how to run an R file from the dos command line--it worked great! The command is "Rterm something filename". I can't remember what it is now, and it is driving me nuts. Anyone know? I know I'll feel pretty stupid once the answer
2003 Aug 06
2
WINS Question?
I have setup my Samba server as a WINS server using the wins support = yes parameter. My remote network can see the Samba server at our head office fine. I have also setup the WINS setting on my PC (W2K Pro box) to point to the IP address of my Samba server. When I do a nmblookup -R -U <IP address of WINS server> <name of my PC> on my Samba server I get this reponse; querying pc1
2005 Aug 24
2
Developers Wanted
Hi, I recently won the Railsday contest and the response has been overwhelming. I''m currently looking for: 1) Rails programmers with at least A FEW COMPLETE Rails applications under their belt 2) Front-end XHTML/CSS developers who are comfortable working with Rails and all the Ajaxy goodness to help me finish up several of my current projects and stick around for the next
2019 May 28
2
apc with rs232
On 5/28/19 3:39 PM, Julian H. Stacey wrote: > grumpy at mailfence.com wrote: >> a friend gave me an old apc smart-ups 1250 >> it has a rs232 interface but i have no pc with a rs232 port >> i attempted to use a rs232 to usb adapter but the ups goes nuts >> i connected the ups to batteries and verified it was working properly >> when i plug the usb cable into the pc
1999 Aug 18
1
Automatic printer driver installation for NT4.0/NT2000 clients?
Dear All, I've seen the PRINTER_DRIVER.txt doc on getting the PRINTER$ share set up to automatically add printer drivers to Win95 clients. It explicitly says that the procedure described does not work for NT4.0 clients. I can't find any other documentation on setting up a PRINTER$ share suitable for NT4.0 or NT2000 clients either in the distribution (2.0.5a) or the web site. Is this
2003 Apr 16
1
Password Question?
I am using Samba 2.2.7 on a RH 7.3 box. Samba is acting as PDC for 98, 2000, XP clients. User's passwords are stored in /etc/smbpasswd. I want to activate password aging so that users are forced to change their passwords on a regular basis. Is this possible? Martin Stacey IT Support Manager Safcol Australia Pty Ltd
2011 Jun 28
1
parallel computing with 'foreach'
Hi all, I would like to parallelize some R code and would like to use the 'foreach' package with a foreach loop. However, whenever I call a function from an enabled package outside of MASS, I get an error message that a number of the functions aren't recognized (even though the functions should be defined). For example: library(foreach) library(doSMP) library(survival) # Create the