similar to: How to define new matrix based on an elementary row operation in a single step?

Displaying 20 results from an estimated 5000 matches similar to: "How to define new matrix based on an elementary row operation in a single step?"

2010 Oct 29
3
Dickey Fuller Test
Dear Users, please help with the following DF test: ===== library(tseries) library(timeSeries) Y=c(3519,3803,4332,4251,4661,4811,4448,4451,4343,4067,4001,3934,3652,3768 ,4082,4101,4628,4898,4476,4728,4458,4004,4095,4056,3641,3966,4417,4367 ,4821,5190,4638,4904,4528,4383,4339,4327,3856,4072,4563,4561,4984,5316 ,4843,5383,4889,4681,4466,4463,4217,4322,4779,4988,5383,5591,5322,5404
1997 Aug 04
3
R-alpha: .Options$digits do not (always) work.
I am sorry that this IS an old topic. Yet another task I think the bug is somewhere in hidden in src/main/options.c .. ##-- The following does not work as it should in R (0.50-a1, but I think also earlier) tst <- function(x=pi, dig =3) {.Options$digits <- as.integer(dig); print(x);x} tst() tst(dig = 12) ##-- This should do the same; it works as expected in R & S : tst2
2010 Aug 23
2
Memory Issue
Dear All, I have an issue on memory use in R programming. Here is the brief story: I want to simulate the power of a nonparameteric test and compare it with the existing tests. The basic steps are 1. I need to use Newton method to obtain the nonparametric MLE that involves the inversion of a large matrix (n-by-n matrix, it takes about less than 3 seconds in average to get the MLE. n = sample
2009 Aug 03
3
Help with reshaping data.frame
I'm having trouble reshaping a data.frame from long to wide. (I think that's the right terminology; feel free to educate me.) I've looked at the reshape function and package and plyr package, but I can't quite figure out how to do this after a dozen variations. I have a data.frame with more levels than this, but similar to: > tst K1 K2 K3 V1 V2 V3 1 10 D a 0.08 99
2008 Oct 15
4
strsplit and regex
Hi All, Is there a means to extract the "10" from "23:10:34" in one pass using strsplit (or something else)? tst <- "23:10:34" For example my attempt strsplit(as.character(tst),"^[0-9]*:") gives [[1]] [1] "" "" "34" Obviously it is matching the first two instances of [0-9]. Note that there may be only one digit
2010 Oct 07
2
Testing for existence of object within a function
I'm trying to test for the existence of an object within a function, but despite searching the help files and R-list, I can't figure out how to do it. Here is some test code: #------------------------- a=1 #now I have a in the global environment tst <- function(a,b=1) { # but a is not in the local function environment print(exists("a", inherits=FALSE)) #This is how I think
1997 Aug 05
3
R-alpha: Version 0.50-a1 patches
A set of patches for R-0.50-a1 is now available as ftp://stat.auckland.ac.nz/pub/R/R-0.50-a1.patch1.gz The patches mainly fix problems reported since R-0.50-a1 but some older problems are also fixed. Here is the list of changes. Ross o Many subsetting and mutation problems with the new "expression" type have now been fixed. o When ask=T is set in par() the user is instructed
2005 Jul 02
2
Is it possible to use glm() with 30 observations?
I have a very simple problem. When using glm to fit binary logistic regression model, sometimes I receive the following warning: Warning messages: 1: fitted probabilities numerically 0 or 1 occurred in: glm.fit(x = X, y = Y, weights = weights, start = start, etastart = etastart, 2: fitted probabilities numerically 0 or 1 occurred in: glm.fit(x = X, y = Y, weights = weights, start = start,
2012 Jul 19
3
Maintaining Column names while writing csv file.
Dear R helpers, I have one trivial problem while writing an output file in csv format. I have two dataframes say df1 and df2 which I am reading from two different csv files. df1 has column names as date, r1, r2, r3 while the dataframe df2 has column names as date, 1w, 2w. (the dates in both the date frames are identical also no of elements in each column are equal say = 10). I merge these
2010 Sep 27
2
subtraction based on two groups in a dataframe
Hello I have a data set like below: plate.id well.id Group HYB rlt1 1 P1 A1 Control SKOV3hyb 0.190 2 P1 A2 Control SKOV3hyb 0.210 3 P1 A3 Control SKOV3hyb 0.205 4 P1 A4 Control SKOV3hyb 0.206 5 P1 A5 Control SKOV3hyb 0.184 385 P1 A1 ovca SKOV3hyb 0.184 386 P1 A2 ovca SKOV3hyb 0.229 387
2011 May 05
2
Looking for equivalent for "strstr"
Friends This is an elementary question. Is there is a built in R function for finding a sub-string in another string? Like strstr in C. I can easily roll my own, but if there is a built in that is one less thing I can do wrong! cheers Worik [[alternative HTML version deleted]]
2007 Jul 11
5
elementary statistics with R (rkward?)
Hi, I am trying to learn some basic statistics stuff but I cannot find any elementary statistics exercises using R language. Using RKward would be even better... I need that in analysing sociological data, obtained through questionnairres - findind corelations between variables, relations between different types of data, etc. Could anyone recommend simple tutorials/exercises, available on www
2009 Jul 21
1
Elementary Symmetric Polynomials
We are interested in obtaining an efficient function that for a given vector of length t will output a vector of length t+1 that contains the associated values of the elementary symmetric polynomials in t variables. Below is what we have at the moment, but it is a little slow for our needs. Any suggestions? Thanks ahead of time for any help you can offer, Austin H. Jones Department of
2010 Nov 05
3
Elementary question - accessing feature codes from cell phone
Hi, please forgive me for this (hopefully) simple question. I cannot seem to find an answer or solution while searching around. I want to be able to call in to my server using my cell phone and be able to set call forwarding for my extension and enter a phone number and also be able to call in to that extension and disable the call forwarding. I see I can do this through the ARI web interface
2004 Jun 22
1
RE: summaries (was: SUMMARY: "elementary sapply question")
Ajay, thank you very much for picking up that age-old habit of posting summaries. It existed years ago on s-help and I find it is still a great thing: I would not have bothered to read your original question nor the answers you got, but I did read the summary -- and I learned something quite interesting! Maybe some others who receive multiple non-elementary answers to their questions could
2011 May 23
6
How do I assign boolean (o,1) values to a column?
Hi everybody!! I'm trying to assign boolean values to a column in a matrix depending on the number of times present in another column. I have no clue, I have been 2 days looking for a way, if somebody knows what kind of functions I need to use I will really apreciate it. example: Color Type Mark1 Mark2 Mark3 Red high 139 P alpha blue low 140 P alpha Green high
2004 Jun 21
2
Elementary sapply question
I am discovering sapply! :-) Could you please help me with a very elementary question? Here is what I know. The following two programs generate the same answer. --------------------------------+---------------------------------------- Loops version | sapply version --------------------------------+----------------------------------------
2010 Aug 31
1
5.5p1/5.6p1 fails tests on SCO Openserver 5.0.7
Openssh 5.5p1 and 5.6p1 SCO OpenServer 5.0.7 I've built various versions of openssh on SCO OSR5.0.7 over the years without much of a problem. Beginning with 5.5p1 however, I have been unable to get a working install. I'm building with gcc 2.95.3. The build completes normally, but 'make tests' fails on several tests: sftp-cmds.sh failures (get command fails on both): - get
2009 Nov 13
3
sum(row1==y) if row2=x
Hi to all is there any construct to sum data=data.frame(row1=c(1,1,3,1,2,3,2,2,1,3,4,5,2,3,2,1) , row2=c(2,2,1,1,1,2,1,2,1,1,1,1,2,2,2,1) ) Means I would like to get all y of row1 if in row2 of the data.frame is an x f.e row1=3 and row2=2 so I would like to get 6 And is there another construct to get the count of pairs where row1=3 and row2=2 means the result should be
2005 Jun 10
2
Replacing for loop with tapply!?
Dear all, We have a large data set with temperature data for weather stations across the globe (15000 stations). For each station, we need to calculate the number of days a certain temperature is exceeded. So far we used the following S code, where mat88 is a matrix containing rows of 365 daily temperatures for each of 15000 weather stations: m <- 37 n <- 2 outmat88 <- matrix(0,