search for: byuh

Displaying 10 results from an estimated 10 matches for "byuh".

Did you mean: byu
2007 May 16
3
Reshape a sparse matrix
Hi, I'd like to reshape a sparse matrix generated from the Matrix package. I can't seem to do it with the command dim(A) <- c(6,9) which works perfectly with the base package matrices, but with the sparse matrices it errors with Error in dim(A) = c(6, 9) : dim<- : invalid first argument Manipulating the Dim attribute of the sparse Matrix does not produce the desired effect. A
2007 May 21
3
an array of matrices
I'd like to have a three dimensional array of matrices. I thought I could construct a five dimensional array to have the three dimensional array of matrices. However, not all of the matrices in the array have the same dimensions, which seems to mean I can't use a five dimensional array. What I'd like is this: A = matrix(1:4,2,2) B = matrix(1:25,5,5) C = matrix(1,3,3) D =
2007 Jun 19
0
Augment 'Matrix' matrices
>>>>> "SH" == Scott Hyde <hydes at byuh.edu> >>>>> on Mon, 18 Jun 2007 16:59:00 -1000 (HST) writes: SH> Martin, How does Matrix implement augmented matrices? I SH> tried this and got the expected result: {Replying to R-help, since this question has come up several times } >> V=matrix(...
2008 Nov 17
1
Rcmd install problem: "cannot open the connection" and "No such file or directory"
Dear all, On Windows XP with R 2.8.0, I get the error message below when I try install a package from the command line. (Installing as a local zip-file from the menu in the GUI works fine.) Could anybody point me towards the source (and solution) to the problem? Regards Søren --------------------------------------------------------------------------- C:\Dokumenter\Stat\RLSdevel>rcmd
2009 Jun 03
3
Return variable assignments from a function
I'd like to perform return variable assignments like matlab. For example, the following function would return A, B, and c to the script that called it. ================================= function [A,B,c] = simple(m,n) A=[ 3 2; 3 3] B=m c=1:n ================================= I'd like to do similar assignments in R, but I seem to be able to only return one variable. I tried to use a
2009 Aug 21
1
a --no-save option for Rprofile.site?
I need to set up Rcmdr for use in a testing center that uses Windows. Since it is in a testing center, we don't want to have data saved, and want it cleared (or never saved) each time R or Rcmdr is run. The method I used to get Rcmdr to run automatically is to add the lines: ------------------------------------------------ defpack = getOption("defaultPackages") mylibs =
2007 Sep 14
2
Cross Compiling
Hello All, I have a Linux computer and do all of my work from it. However, I teach also, which means that many of my students use windows. Hence, I need to create packages that work under windows as well as Linux. I have tried to follow the directions at http://cran.r-project.org/doc/contrib/cross-build.pdf which is the document "Building Microsoft Windows Versions of R and R packages
2007 Sep 12
1
Create a "local" repository
I'd like to create a small "local" repository that would be used to install a package for a class of students at their home. I don't want to upload it to CRAN, as I don't think it should be disseminated at that level. What I'd like to do is: > where="http://mysite.com/" > install.packages("mypackage",contriburl=where) When I try this, (after
2009 Jul 15
0
Starting RCmdr from the Commandline (and a shortcut) in Windows
I thought I'd share the experience I had in getting Rcmdr to start automatically when R starts up. I'd read of solutions that would start Rcmdr every time R started up, but I didn't want it to start every time, only when I wanted it to. First, I created a shortcut on the desktop to R and changed its name to Rcmdr. Next, I changed the target of the shortcut to (edit the version
2007 Sep 01
1
row echelon form
Hi everyone, I am looking to use R as a MATLAB replacement for linear algebra. I've done a fairly good job for finding replacements for most of the functions I'm interested in, I John Fox wrote a program for implementing the reduced row echelon form of a matrix (by doing the Gauss-Jordan elimination). I modified it a bit: rref <- function(A,