search for: onyourmark

Displaying 19 results from an estimated 19 matches for "onyourmark".

2009 Apr 21
4
search through a matrix
Hi. I have a 925 by 925 correlation matrix corM. I want to identify all variables that have correlation greater than 0.9. Can anyone suggest an "R way" of doing this? Thank you. -- View this message in context: http://www.nabble.com/search-through-a-matrix-tp23153538p23153538.html Sent from the R help mailing list archive at Nabble.com.
2009 Apr 05
3
number of zeros in a matrix -row by row
Hi. I have an n x m matrix M some of who's entries are zeros. I want to know how many zeros there are in each row -perhaps stored in a 1 x n vector which lists the number of zeros for each row of M. Before I had a vector V and I was able to get the number of zeros in V by doing length(V[ V==0]) but when I try something similar for M, like M[ M==0] it creates a vector not a matrix and so
2009 Jun 18
3
how to sort
Hi. I have an object. I think it is a list. > str(corTFandPCA) num [1:922, 1:5] -0.0226 -0.0504 -0.0208 -0.0582 -0.0257 ... - attr(*, "dimnames")=List of 2 ..$ : chr [1:922] "abdomen.2" "abdomimal.3" "abdominal.4" "aberration.5" ... ..$ : chr [1:5] "PC1" "PC2" "PC3" "PC4" ... I want to order it
2009 May 02
2
any suggestions on this error?
Error in matrix(unlist(value, recursive = FALSE, use.names = FALSE), nrow = nr, : invalid 'ncol' value (too large or NA) the statement was: for (i in v) {for (j in m[0,]){if(v[i]==m[0,j]){M[,-j]}}} where 'v' is a vector, and 'm' and 'M' are both matrices. -- View this message in context:
2009 Apr 22
2
Exporting objects plotted with plot3d() - rgl package
...ithin anova (William Simpson) > 3. Re: joined R-today (Liviu Andronic) > 4. Package or packages for randomization in a clinical trial > (John Sorkin) > 5. Re: joined R-today (Bala subramanian) > 6. Sampling in R (Seyit Ali Kayis) > 7. search through a matrix (onyourmark) > 8. Re: bug when subtracting decimals? (Duncan Murdoch) > 9. Re: search through a matrix (Uwe Ligges) > 10. Re: Sampling in R (Uwe Ligges) > 11. Odp: Sampling in R (Petr PIKAL) > 12. Re: search through a matrix (Dimitris Rizopoulos) > 13. Re: line wrap in R consol...
2009 Jun 19
2
meaning of glm(value ~ .,
I am trying to build a glm model with many inputs. I saw the following code in Rattle crs$glm <- glm(value ~ ., data=crs$dataset[,c(1:59,922)], family=binomial(link="logit")) I am not clear about what value ~ . means and also, I see data=crs$dataset[,c(1:59,922)] I have read that the data argument is optional here "an optional data frame, list or environment (or object
2009 Mar 14
2
permutations in R
Hi. Does anyone know of a function which will take as input a number n (or a set of n letters) and will give out, one at a time, the permutations of n (or of those n letters) as a vector? So that I can use the permutations one at a time. And such that it will exhaust all the permutations with no repeats. For example if n is 3, I would want a function which I could use in a loop and the first time
2009 May 24
2
accuracy of a neural net
Hi. I started with a file which was a sparse 982x923 matrix and where the last column was a variable to be predicted. I did principle component analysis on it and arrived at a new 982x923 matrix. Then I ran the code below to get a neural network using nnet and then wanted to get a confusion matrix or at least know how accurate the neural net was. I used the first 22 principle components only for
2009 Nov 01
4
convert list to Dataframe
Hi. I have a huge list called twitter: > dim(twitter) NULL > str(twitter) List of 1 $ :Classes 'PlainTextDocument', 'TextDocument', 'character' atomic [1:35575] 11999;10:47:14;20;10;2009;ObamaLouverture;Trails Mixed Lessons For Governance From Campaigner-in-chief: President obama jumps campaign 09 tuesday..
2009 Apr 03
1
how to do this "the R way"
Hi. I am sure there is a better way in R to do this then using a loop but I am new to it and not sure what to do. I think it might be something about using a function as an argument but not sure. I have a 1 x 2000 vector TS2 which has entries from the set {x: x is in Z and 0<x<8} (where Z is the set of Integers). Then I also have a 5050 x 7 matrix called 'perm' whose entries are
2009 Apr 20
1
factanal error
Hi. I tried running the following code. I don't understand the error. mydata <- read.table("C:/dataForR/radiology/wordFrequencies.csv", header=TRUE, sep=",") > dim(mydata) [1] 982 924 mydataN<-mydata[,-923] > dim(mydataN) [1] 982 923 cor(mydataN) factanal(mydataN, factors=3) Error in solve.default(cv) : Lapack routine dgesv: system is exactly singular
2009 Apr 24
1
deleting rows provisionally
I have an object. I think it is a matrix, called 'answer2' str(answer2) int [1:1537, 1:2] 1 399 653 2 3 600 4 5 271 870 ... - attr(*, "dimnames")=List of 2 ..$ : chr [1:1537] "a4.1" "hirschsprung.399" "peritoneal.653" "abdomen.2" ... ..$ : chr [1:2] "row" "col" I want to delete rows that have the same entries.
2012 Jan 08
2
cannot find package in Packages>>Install Packages
...ata > is rectangular. > -- look at strsplit for separating at "@" characters. > -- post the output of dput() on your sample, since email is probably not > capable of rendering this data without creating distortions. > > -- > David > > On Nov 1, 2009, at 7:43 AM, onyourmark wrote: > > >> Hi. I have a huge list called twitter: >> >> dim(twitter) >>> >> NULL >> >>> str(twitter) >>> >> > This looks to have been converted into an R object through soe process on > some unspecified input. You should...
2009 May 08
1
if ((x >.2 || x<(-.2)) && (col(x)!=row(x))) {x=x[,-col(x)]}
Hi. I have a correlation matrix 'x' which is of size 923x923 I need to remove variables that are highly correlated. I don't have a sophisticated way of selecting which of the two in a highly correlated pair to remove. I thought I would just go through each entry of the correlation matrix and if it is greater than 0.6 (or less than -0.6) I will remove that column and then redo the
2009 Apr 27
3
Formatting numbers
...s (Esmail) > 14. Re: Conditional plot labels (baptiste auguie) > 15. Re: Scatterplot of two groups side-by-side? (baptiste auguie) > 16. Help to select the raw in a data.frame with the max value > (Alessandro) > 17. re moving entries from one vector that are in another (onyourmark) > 18. Is their any function can generate orthogonal tables(e.g. > L_8(2^7) (dzuswxbylw) > 19. Re: dotplot: labeling coordinates for each point (Qifei Zhu) > 20. Re: Help to select the raw in a data.frame with the max value > (Jorge Ivan Velez) > 21. Re: Nomogr...
2009 Mar 14
1
multiple hypothesis testing
...gt; 112. Build function from model formula (Corey Dow-Hygelund) > 113. Re: How to combine xtable and minipage with Sweave ? > (Paul Johnson) > 114. Is it normal that normalize.loess does not tolerate a single > NA value? (Emmanuel Levy) > 115. permutations in R (onyourmark) > 116. permutations in R (onyourmark) > 117. Re: permutations in R (Daniel Viar) > 118. Re: Mixed model help! (Dieter Menne) > 119. obtaining the values for the hazard function in a cox > regression (Bob Green) > 120. Re: temporal join (Jonathan Greenberg) > 121. R...
2009 Apr 17
0
question about the Text Mining package tm
Hello. I am trying to work with the text mining package tm. I have a directory called textsTweet1 which contains three files short.txt myTextFile.txt myTextFile.csv short.txt contains one line: THE CAT IN THE HAT\n myTextFile contains some tweets from Twitter. The first few lines of myTextFile.txt are: @oliviamunn I miss a good Yakaniku...I miss Japan...I NEED COCO EVERYBODY. I NEED TO GET ON
2009 Apr 20
0
system is exactly singular
Hi. I have a csv file. I imported it with mydata<-read.table("C:/dataForR/radiology/WordFrequency.csv", header=TRUE, sep=",") > dim(mydata) [1] 982 925 The first column had the doc numbers like doc1, doc2, etc. so I did mydataNum<-mydata[,-1] > dim(mydataNum) [1] 982 924 The second to last column was also not numeric and so I did >
2009 May 30
0
what is 'class.ind' here?
Hi. The there is an example in nnet help which is pasted in below. I am not sure how they are generating 'targets'. What is the 'class.ind() function doing? In the help docs for it they say "Generates a class indicator function from a given factor." I tried putting a simple vector of the "classes" into test.cl (below) but I get an error of "(list) object