similar to: Newbie Matrix problem refined; Can't convert .csv data to matrix

Displaying 20 results from an estimated 6000 matches similar to: "Newbie Matrix problem refined; Can't convert .csv data to matrix"

2003 May 16
4
Newbie hung up with matrices
Hi all: Thanks in advance for your assistance. I just started learning R. I'm trying to use the Help and the downloadable manuals. I am stuck on trying to multiply matrices. Can anyone please supply a couple of lines of code that I can plug into a fresh console to see how a double precision (1x3) matrix is multiplied by a double precision (3x3) matrix? I keep getting an error
2003 May 29
2
Newbie trying to Lag Variables in a regression
Perhaps I am making this too hard, but how does one regress y(t) on a constant, x(t-1) and y(t-1)? I've tried the manuals and until I get Dalgaard's book (just ordered on Amazon), I am stuck! Thanks to all in advance for your patience and consideration.
2003 May 30
1
Downloading packages from CRAN
Hello- I am trying to download packages from CRAN to my Window-based system. I downloaded the most recent version of Perl, as instructed in the Install Manual and the "car" package, just as a trial. Where should they "reside" within my computer: the unzipped Perl I have placed at ...R/rw1070; the "car" package I unzipped and placed at ...R/rw1070/library. Is this
2003 May 23
3
Not getting all data to a text file via write.table
Hi all- Thanks in advance for your help. I have a 2275x1 table of residuals from an lm() regression. I want to analyze this further in Excel. I tried using: df<-resid(object) write.table(df) and this yields a nice looking output in R, but because of screen constraints, I seem to loose data "out-the-top" of the Console -- which doesn't bother me, as long as I can see it
2003 Jun 04
1
Error Using dwtest
Hello all- I have two time series, Index1stdiff and Comps1stdiff. I regressed the first on the second and R returned the summary stats I expected. Then I looked at and plotted the residuals. I then wanted to assess autocorrelation characteristics and tried to run a Durbin-Watson using: library(lmtest) dwtest(formula=Index1stdiff~Comps1stdiff,alternative=c("greater")) I am
2011 Oct 06
1
Issue with read.csv treatment of numerics enclosed in quotes (and a confession)
Dear Help-Rs,   I've been dealing with this problem for some time, using a work-around to deal with it. It's time for me to come clean with my ineptitude and seek a what has got to be a more streamlined solution from the Help-Rverse.   I regularly import delimited text data that contains numerics enclosed in quotes (e.g., "00765288071").  Thing is, for some of these data, I need
2011 Apr 20
3
succession time series graph
Dear gracious R community, I would like to produce charts of phytoplankton biomass changes through time. Each species has a line, and the biomass varies in mirror form along the line for each species along the X time axis. Here is an example of what I'd like to do: http://www.er.uqam.ca/nobel/r30240/Succession.jpg Any suggestions? Thanks David Bird UQAM, Montreal
2008 Oct 17
2
using ifelse with surprising results
Thanks for the gracious assistance in advance I'm working on a non-metric scaling problem and am calculating the distance for input to isoMDS Here is the code library(MASS) vegdata <- tapply(Percent, list(PRIMARY_VE, MASTERID), sum) x.mat <- matrix(x, nrow=40, ncol=2750, byrow=TRUE, dimnames = c(dimnames(x)[1], dimnames(x)[2])) vegdata.dd <- dist(x) vegdata.dd <-
2010 Jul 23
5
UseR! 2010 - my impressions
Dear UseRs!, Everything about UseR! 2010 was terrific! I really mean "everything" - the tutorials, invited talks, kaleidoscope sessions, focus sessions, breakfast, snacks, lunch, conference dinner, shuttle services, and the participants. The organization was fabulous. NIST were gracious hosts, and provided top notch facilities. The rousing speech by Antonio Possolo, who is the chief
2001 Sep 05
5
new ogg stream
Thomas was gracious enough to provide a second stream of his beats.dk vorbis broadcast. http://vorbis.arkena.com:8004/test.ogg is 128kbps http://vorbis.arkena.com:8004/test_64.ogg is 64kbps Now even us lowspeed dsl people can enjoy :) Everyone should give a listen to the 64kbps and see what they think of the quality (it's being reencoded from 128kbsp Ogg). jack. --- >8 ---- List
2014 Feb 14
1
setting the local administrator password on a samba4 member server connected to windows AD DC
Hello, I am the admin for an OU within domain. My admin privileges are limited to machines within the OU. I attempting to setup a samba file server within my OU. I followed the guide at: http://wiki.samba.org/index.php/Samba4/Domain_Member when I try to execute # net rpc rights grant 'SAMDOM\Domain Admins' SeDiskOperatorPrivilege -Uadministrator I need the administrator password. 1)Is
2012 Oct 28
1
[LLVMdev] understanding of getelementptr with a const string
I'm working through some very basic IR code and got a bit confused by the string printing example. In particular, if you have a constant string like: @.str = private unnamed_addr constant [4 x i8] c"%d\0A\00" To pass this as a pointer to a C-function like printf you need to use 2 indexes in getelementptr: %sp = getelementptr [4 x i8]* @.str, i32 0, i32 0 I think I understand
2001 Mar 13
3
Invalid ICMP error
To anyone who is well versed with samba, I am currently setup with ip masquerading with a cable modem connection to my ISP. I have an error message that continues to show up on my linux box. It says: 10.58.0.1 sent an invalid ICMP error to a broadcast. This means it is my linux box sending an invalid packet out through my modem. This started to happen when I installed samba. So I hav come
2007 May 16
3
more woes trying to convert a data.frame to a numerical matrix
I have the following csv file: name,x,y,z category,delta,gamma,epsilon a,1,2,3 b,4,5,6 c,7,8,9 I'd like to create a numeric matrix of just the numbers in this csv dataset. I've tried the following program: sample.data <- read.csv("sample.csv") numerical.data <- as.matrix(sample.data[-1,-1]) However, print(numerical.data) returns what appears to be a matrix of
2009 Apr 16
2
Reading in a large number of dbf files
good morning This question is not a stats question per say but a data management and lattice plotting problem. I apologize now if I'm asking an inappropriate question to this gracious group. I'm need to bring in approximately 100 *.dbf files into R but I'm having difficultly understanding several examples I've tracked down regarding this procedure and could benefit from your
2004 Nov 28
5
Newbie-needs help
Hello all: I''ve read the documentation and am not quite sure where to start. What I''m trying to do is build a network with a 3 NIC Shorewall router. My system is behind a routed /49 network. I''d like to use 2 or 3 of the static IP addresses for my DMZ ( DNS server, mail, webserver etc ) and then have my remaining machines in a private network NATed is some way. My
2003 Jun 01
1
Wording of "R Installation and Administration"
Hi, I hope I haven't got this wrong, but I don't think one needs Perl installed if they install the "precompiled" packages for Windows right? I'm just wondering if the first sentence in the "R Installation and Administration" can be re-worded a bit so newbies won't get confused.... ---------- Forwarded message ---------- Date: Mon, 2 Jun 2003 08:56:37 +1200
2004 Mar 10
3
converting lists got by tapply to dataframes
I have two lists: xa <- list( X=c(1,2,3), Y=c(4,5,6), Z=c(7,8,9) ) xb <- with( barley, tapply( X=seq(1:nrow(barley)), INDEX=site , FUN=function(z)yield[z])) I can convert xa to a dataframe easily with: as.data.frame(xa) But if i try the same with xb I get: as.data.frame(xb) Error in as.data.frame.default(xb) : can't coerce array into a data.frame What
2008 Dec 30
3
Componentwise means of a list of matrices?
Dear useRs, I have a list, each entry of which is a matrix of constant dimensions. Is there a good way (i.e., not using a for loop) to apply a mean to each matrix entry *across list entries*? Example: foo <- list(rbind(c(1,2,3),c(4,5,6)),rbind(c(7,8,9),c(10,11,12))) some.sort.of.apply(foo,FUN=mean) I'm looking for a componentwise mean across the two entries of foo, i.e., the
2010 Sep 01
3
standardize columns selectively within a dataframe
Dear all, I have a dataframe: df<-dataframe(a=c(1,2,3),b=c(4,5,6),c=c(7,8,9),d=c(10,11,12)) I want to obtain a new dataframe with columns a and b being standardized ((x-mean(x))/sd(x)); the other two columns (c,d) I want to leave unchanged. What is the best way to achieve this? I have been trying to use subscripts but did not succeed so far. Any tips? Many thanks, Olga