similar to: Find the sign

Displaying 20 results from an estimated 90000 matches similar to: "Find the sign"

2010 Sep 17
4
count frequency
Hello everyone, please consider the following lines of a matrix [574,] 59 32 [575,] 59 32 [576,] 59 32 [577,] 59 32 [578,] 59 32 [579,] 59 32 [580,] 59 32 [581,] 60 32 [582,] 60 33 [583,] 60 33 [584,] 60 33 [585,] 60 33 [586,] 60 33 [587,] 60 33 [588,] 60 33 [589,] 60 33 [590,] 60 33 [591,] 61 33 [592,] 61 33 [593,] 61
2010 Dec 15
6
Numbers in a string
Hello, I have stings which have all sort of characters (numbers, letters, punctuation marks, etc) I would like to stay only with the numbers in them, does somebody know how to do this? Thank you Felipe Parra [[alternative HTML version deleted]]
2010 Nov 17
3
Variable Editor
Hello everoyne, If you have ever used matlab you should know the variable editor. You click over the value of a variable in the workspace and it opens like a excel sheet. Do you know if there is something like that in R . This will make easier for me to understand what values are stored in a matrix. Also I am using rkward. Do you know if there is anyway to see the already defined variables?  I
2010 Nov 17
1
reduce print accuracy
Hello everyone. Consider the following number below:  0.9333333333333333 0.9333333333333333 0.0666666666667 Is it possible to print them with less digits like 0.93 0.93 0.06 (but without losing the R's accuracy). I would like to thank you in advance Best Regards Alex [[alternative HTML version deleted]]
2011 Jan 25
1
Learn Vectorization (Vectorize)
Greetings Friends, I would be grateful if you can help me undestand how to make my R code more efficiently. I have read in R intoductory tutorial that a for loop is not used so ofter (and is not maybe not that efficient) compared to other languages. So I am trying to build understanding how to get the equivalent of a for loop using more R-oriented thinking. If I got it right one way to do that
2011 Feb 16
2
monitor variable change
Dear all I would like to ask you if there is a way in R to monitor in R when a value changes. Right now I use the sprintf('my variables is %d \n, j) to print the value of the variable. Is it possible when a 'big' for loop executes to open in a new window to dynamically check only the variable I want to. If I put all the sprintf statements inside my loop then I get flooded with so
2010 Dec 11
2
Can't install Sweave
Hi there! I tried to work with Sweave, assuming that it is part of the standard installation - which it was not for my system. Trying to install, it gives me this error message: > install.packages("Sweave") Warning message: In getDependencies(pkgs, dependencies, available, lib) : package ?Sweave? is not available My system data are: > sessionInfo()
2010 Nov 17
2
How to catch warnings
Hello when my code executes I receive the message that were some warnings. I want to catch warning messages at run time so to print some local variables and try to understand why this warning happens. I searched on internet and I tried withCallingHandlers( which seems to work but as I used Rkward the result is awful. I get a prompt to copy paste a value only while at the same time my background
2008 Sep 01
1
linebreak in mathematical anotation?
Hi I am using mathematical anotation to make the labels in a barplot in italics. as an example (adapted from http://finzi.psych.upenn.edu/R/Rhelp02a/archive/129808.html): tt <- c("italic(First~~set)", "italic(Second~~set)", "italic(third~~set") barplot(1:3, names.arg=parse(text=tt)) But I would like to have it with "set" in a second column, like tt
2010 Aug 24
2
percentage sign in expression
Readers, According to the documentation for the function 'plotmath' there is no apparent possibility to add the percent sign (%) to a plot function, e.g. plot(a[,1]~b[,2],ylab=expression(x~%),xlab=expression(z)) How to achieve this please? yours, rhelp at conference.jabber.org r251 mandriva2009
2010 Nov 20
2
Merge two ggplots
Hello everyone. I am using ggplot and I need some help to merge these two plots into one. plot_CR<-function(x,y,agentid,CRagent){   library(ggplot2)     agent<-CRagent[[agentid]] # To make following expression shorter   ggplot((data.frame(x=CRX,y=CRY,sr=agent$sr)))+   geom_point(aes(x,y,colour=cut(sr,c(0,-10,-20,-30,-40,-50,-60,-70,-80))))+   geom_text(aes(x,y,color=cut(sr,
2011 Dec 02
3
find and replace string
Dear all, I would like to search in a string for the second occurrence of a symbol and replace the symbol after it For example my strings look like sta_+1+0_field2ndtry_0000$01.cfg I want to find the digit that comes after the second +, in that case is zero and then over a loop create the strings below sta_+1+0_field2ndtry_0000$01.cfg sta_+1+1_field2ndtry_0000$01.cfg
2010 Sep 16
4
help me understand how things work.
Hello I have some strange output from R and I try to understand how R works. Could you please help me with that? temp <- rbind (c(10,1),c(99,98)) > temp [,1] [,2] [1,] 10 1 [2,] 99 98 > dist(temp) 1 2 131.6435 > sqrt(dist(temp)) 1 2 11.47360 so far so good. until the nex line: when I try to do what i did before but adding the 1/(what I did
2011 May 09
3
Recursive Indexing Failed
Dear all, I would like to ask your help concerning an error message I get. I have the following struct str(CRagentInTime[[1]]) List of 2 $ timelag: int 0 $ CRagent:List of 50 ..$ :List of 3 .. ..$ CRmap: num [1:256, 1:256] NA NA NA NA NA NA NA NA NA NA ... .. ..$ xy : num [1:2] 10 177 .. ..$ sr : num [1:49] -94.9 -92.8 -79.5 -97.6 -78.4 ... and I wanted to select all the sr fields
2010 Nov 01
2
transforming a dataset for association analysis RESHAPE2
I get the following message when using the reshape2 package line > tDat.m<- melt(Dataset) Using Item, Subject as id variables > tDatCast<- acast(tDat.m,Subject~Item) Aggregation function missing: defaulting to length Note Problem Statement- convert dataframe Subject Item Score 1 Subject 1 Item 1 1 2 Subject 1 Item 2 0 3 Subject 1 Item 3 1 4 Subject 2 Item 1 1 5
2012 Mar 08
2
Find identical pairs
Dear all I am having two numerical vector the x and y. I would like to find the identical x,y pairs. How I can do that in R? I would like to thank you in advance B.R Alex [[alternative HTML version deleted]]
2010 Nov 17
3
Find in R and R books
Hello everyone. In matlab  (again) there is a fucntion find that returns you the indexes where the condition in find was met. I want the same functionality in R i.e find(Mydata>2) to return all the indexes where the condition is met. Do you know something like that? Also when I try to search in google using for example the word R inside the search lemma I get very few results as the R confuses
2011 Feb 01
2
How to change size of xlab inplot?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi I want to increase the size of the text for xlab in the plot command: plot(1,1, xlab="Label") I tried cex, cex.caption and others, but none worked. Is there a way of using cex=2 for the xlab? Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of
2010 Nov 18
3
Sample covariance matrix in R
Hello everyone. I would like to find the sample covariance matrix using R. So far I read on the wikipedia what a sample_covariance is http://en.wikipedia.org/wiki/Sample_covariance according to wikipedia one vector is enough to calculate the sample covariance matrix. In R I tried cov(myvector) and I get the reply that I need to pass either two argument or one matrix with x,y values . How can I
2011 Jan 06
1
Find and remove elemnts of a data frame
Dear all, I have a data frame that is created like that data.frame(x=CRX[-1],y=CRY[-1],z=CRagent[[1]]$sr) the output looks like 45 116 162 -30.89105988567164 46 128  79 -42.66296679571184 47 180 195 -30.45626175641315 48 114  83 -45.26843476475688 49 118  73 -46.85389245327003 How can I select only the rows that their third column is higher that -45? This will return the following 116 162