Displaying 20 results from an estimated 10000 matches similar to: "Binary Matrices"
2005 Jul 11
3
misc3d package
Hi,
I am trying to install the misc3d package on a Windows (XP) installation of R 2.0.1 using install.packages("misc3d") but with no success. I have used this approach with other packages OK, but for misc3d I get the following output...
trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/PACKAGES'
Content type `text/plain; charset=iso-8859-1' length 27996 bytes
2010 Jan 07
1
Quantreg - 'could not find function"rq"'
Hi all,
I'm having some troubles with the Quantreg package. I am using R
version 2.10.0, and have downloaded the most recent version of Quantreg
(4.44) and SparseM (0.83 - required package). However, when I try to
run an analysis (e.g. fit1<-rq(y~x, tau=0.5)) I get an error message
saying that the function "rq" could not be found. I get the same
message when I try to search
2012 Dec 09
2
Problem with secondary sata controller
I am having problems getting my 64-bit Debian Squeeze (Xen version 4.0, Linux Kernel 2.6.32) dom0 to recognize a harddrive connected to a secondary sata controller. My motherboard is a Gigabyte GA-X79-UP4 and has two sata controllers. The first is controlled by an Intel X79 chipset and the second is controlled by a Marvell 88SE9172 chip. During the initial install of Debian everything is fine and
2011 Dec 12
3
For loop indicies
I would like to run a for loop with an index going from 0 to 499 but the following seems to miss out the first value:
C <- 499
for (i in 0:C)
The alternative is:
C <- 500
for (i in 1:C)
{
#Then every time I use i, I replace it with i-1
}
Is this a good way to do it or is tere a better way?
Thank you,
ThomasThis message and any attachment are intended solely for the addressee and may
2012 Jun 22
3
removing NA from a data frame
Removing rows with NAs, using na.omit(), doesn't seem to be working for me.
Dataset:
> str ( ex10s )
'data.frame': 2189576 obs. of 5 variables:
$ LOPNR : int 58 58 58 58 64 64 64 64 64 64 ...
$ DIAGNOS: Factor w/ 173 levels "F20","F200","F2000",..: 128 128 128 128 105 105 105 160 105 105 ...
$ X_DATE : int 20060821 20061207 20080102 20090904
2012 Jul 18
3
'symbols' not plotting correct circle radii
Hi there.
I have been plotting some circles using 'symbols', with radii representing my data, but the radii looked incorrect.
It seems to happen with a single circle too:
Symbols ( 0, 0, circles = 40, xlim = c(-40, 40), ylim= c(-40, 40))
If I put a ruler up to my monitor (technology!) to compare the radius with the axes, the circle isn't radius 40; it is closer to 15...
I
2005 Oct 03
4
no config file
I've tried installing wine using synaptic on ubuntu, also compiling form
source and a couple of other ways but never get a ./wine/config file ?
Any idea what I'm doing wrong?
Thanks
Jim
--
Dr. Jim Maas
james.maas@nottingham.ac.uk
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
2011 Mar 23
1
R CMD check: building indices error
Hi guys,
I am updating a package because of data format in data folder. So I just
change an extension of a file to .txt ... nothing more.
I get this error on the R CMD check
** help
*** installing help indices
** building package indices ...
Error in read.table(zfile, header = TRUE, as.is = FALSE) :
more columns than column names
ERREUR : installing package indices failed
Note that the R CMD
2011 Nov 29
3
fill binary matrices with random 1s
Dear all, I am finding difficulty in the following, I would like to
create an empty matrix e.g. 10x10 of 0s and sequentially fill this
matrix with randomly placed a 1s until it is saturated. Producing 100
matrices of sequentially increasing density., This process needs to be
randomized 1000 times., I assume i should run this along the following
lines, 1) Create 1000 matrices all zeros, 2) add
2011 Apr 12
1
Bayesian PCA
First of all I should say this email is more of a general statistics questions rather than being specific to using R but I'm hoping that this may be of general interest.
I have a dataset that I would really like to use PCA on and have been using the package pcaMethods to examine my data. The results using traditional PCA come out really nicely. The dataset is comprised of a set of questions
2011 Jul 16
1
Max within groups
I know there's a really easy way to do this but I just can't track it down. I experimented with various apply functions but couldn't get it quite right.
I have a matrix like this:
1, 16
1, 23
1, 21
1, 6
1, 25
2, 4
2, 17
2, 45
2, 11
2, 20
and I'd like to find the max value in Column 2 (or the index to the max value) grouped by the first column. So the max for Group 1, the max for
2005 Feb 11
3
How to solve error : "cannot allocate vector of size 1208235 Kb"
Howdy R gurus !
I am newbie to R
I use R 2.0.1 in Windows XP. When I run R
I got the follwoing memory error.
My physical memory size is 3 Gb.
My R got the memory problem when it reached to
about 2 Gb.
Thanks in advance,
> library(spdep)
> sfr.lagsarlm <- lagsarlm(sfr.data$Bldgsqft ~ sfr.data$Ncounty + sfr.data$Nugb + sfr.data$Ngroup, data=sfr.data, listw=sfr.listw,
2012 Feb 02
1
Writing out data
What is the best way to write out comma separated data, as a program
is running (rather than waiting to the end using write.csv)? At the
moment I'm doing this, but I guess it's not the most efficient. The
data is in a column in the matrix postcount, and I'm using a loop to
write out each of the 100 elements.
for (j in 1:100)
{
cat(postcount[1,j], ",", file=filename,
2012 Oct 23
10
How to pick colums from a ragged array?
I have a large dataset (~1 million rows) of three variables: ID (patient's name), DATE (of appointment) and DIAGNOSIS (given on that date).
Patients may have been assigned more than one diagnosis at any one appointment - leading to two rows, same ID and DATE but different DIAGNOSIS.
The diagnoses may change between appointments.
I want to subset the data in two ways:
- define groups
2012 Jun 25
1
Replacing text with a carriage return
I have a comma separated data file with no carriage returns and what
I'd like to do is
1. read the data as a block text
2. search for the string that starts each record "record_start", and
replace this with a carriage return. Replace will do, or just add a
carriage return before it. The string is the same for each record, but
it is enclosed in double quote marks in the file.
2009 Jul 03
2
normalised curve fitting with error bars
Dear List,
My data consist of nine columns and about 50,000 rows. It looks like
this.
-9.0225 3.46464 2.80926 -0.3847 3.73735 1.1058 -2.98936 1.38901 -8.1846
-2.4315 -5.1189 1.8225 3.3798 1.7874 4.693 -3.9286 1.4266 5.7849
-3.4894 -4.0305 3.7879 3.5195 2.9186 2.8685 -6.126 4.978 4.9381
4.5282 3.62558 -3.0455 4.6518 1.39746 0.68652 3.5708 -3.6404 -4.2963
-1.3183 0.6752 -4.0382 -2.5386
2011 Oct 23
1
A problem with chol() function
I think I am missing something with the chol() function. Here is my calculation:
?
> mat
???? [,1] [,2] [,3] [,4] [,5]
[1,]??? 1??? 3??? 0??? 0??? 0
[2,]??? 0??? 1??? 0??? 0??? 0
[3,]??? 0??? 0??? 1??? 0??? 0
[4,]??? 0??? 0??? 0??? 1??? 0
[5,]??? 0??? 0??? 0??? 0??? 1
> eigen(mat)
$values
[1] 1 1 1 1 1
$vectors
???? [,1]????????? [,2] [,3] [,4] [,5]
[1,]??? 1 -1.000000e+00??? 0??? 0??? 0
2011 Oct 27
2
Trying to create a function to extract values from a matrix
My issue seems simple but I can't find any method to work...
I've got a matrix with 4 columns and I want to extract the values from each
row to make a new 2x2 matrix for each row. From these resultant matrices, I
want to get the Eigen Values and output them from the function as usable
numbers (not a text string).
Here's the function...
###
Ef =
function(MAT) {for(i in
2006 Mar 03
1
NA in eigen()
Hi,
I am using eigen to get an eigen decomposition of a square, symmetric
matrix. For some reason, I am getting a column in my eigen vectors (the
52nd column out of 601) that is a column of all NAs. I am using the option,
symmetric=T for eigen. I just discovered that I do not get this behavior
when I use the option EISPACK=T. With EISPACK=T, the 52nd eigenvector is
(up to rounding error) a
2009 Mar 25
1
Angstrom Symbol on Y-axis ?
Hi,
I have started very recently with R in order to get excellent Box and
Whisker plots. I could plot my data nicely. However, I can't figure
out from R-mailing list archive or google search either, how to place
an Angstrom sign/symbol on the y-axis (any axis in principle), after a
usual y-axis label ?
I am doing something like this: