similar to: values in between

Displaying 20 results from an estimated 1000 matches similar to: "values in between"

2005 Apr 16
2
"chronological" ordering of factor in lm() and plot()
I am trying to do some basic regression and ANOVA on cycle times (numeric vectors) across weekdays (character vector), where I have simply labelled my days as: days<- c("mon","tue","wed"...etc). (NOTE: There are actually multiple instances of each day, and the data is read-in from a .dat file.) I have no trouble at all with the actual number crunching, It is the
2017 Sep 21
4
List of occuring values
Dear all, ftable produces a list of the frequencies of all occuring values. But how about the occuring values? How can I retrieve a list of occuring values? How can I retrieve a table with both the list of occuring values and their respective frequencies? Thank you in advance, Yours, Ferri
2009 Nov 04
4
read.table (again)
Dear R commnuity, Thanks a lot for your help. I want to read in tables, the problem is that the table is composed in a difficult way. In ariginal it looks like this: 669 736 842101610481029114711811166124312081128117611221026 9581024 992 685 720 829 925 995 96010241057116611501104106410711092 983 908 989 904 924 896 882 897 909 933 928 907 916 902 546 734 784 868 970 954
2004 Jun 23
2
Covered Labels
Dear All! How can I cope with overlapping or covered labels (covered by labels from other data points) in plots? Martina Renninger [[alternative HTML version deleted]]
2009 Dec 17
2
Which hist cell each value falls in?
Hi, all. I'm using hist() to obtain a vector of break values in an interval. I then want to be able to identify which cell any value from another vector falls in. E.g. applying > breaks [1] -3.5 -3.0 -2.5 -2.0 -1.5 -1.0 -0.5 0.0 0.5 1.0 1.5 2.0 to > x [1] -3.74519666 -0.38183630 -1.22884247 -0.20971824 -0.30533939 -0.36271207 [7] -2.27513499 -2.23688653 -1.98827155 -1.48666274
2011 Aug 01
2
if function problems
Dear All, Sorry to bother I want to write a function in R using if Say I have a dataset x, if x[i]<0, then x[i]=x[i], if x[i]>0, then x[i]=0 for example, x=-3:3, then using the function, x becomes [-3,-2,-1,0,0,0,0] I write the codes as follows, gjr=function(x) {lena=length(x) for(i in 1:lenx) if (x[i]<0) return (x[i]) if (x[i]>0) return (0) x} but then, doing gjr(x? it only
2006 Aug 11
2
Colour-coding intervals on a line
Hi, This is a simple version of something that I am trying to do. If I can sort the problem basically, I figure I should be able to sort it for the program I'm writing (which would take longer to explain). I need to know if there is any way of using different colours for different intervals of a line on a graph. Eg. If I plot the line y=x for x=1:10, and split this line into 106 intervals
2006 Feb 26
1
how to get f(x)=___ from a piecwise function
>From actual real-world readings, I have two vectors: x<- c(-100.4, 32.0, 99.8, 200.2, 300.6, 399.8, 500.0, 600.0, 699.6, 799.6, 899.8) y<- c(0.4, 0.0, 0.2, -0.2, -0.6, 0.2, 0.0, 0.0, 0.4, 0.4, 0.2) which, in the usual way constitute a continuous piecewise function. What I want to do is find an easy method to get at f(x) for some x I have NOT specified in the above vector. For
2003 Jun 24
3
Password protection
Hi, I would like to request password protection in syslinux. I know that it has come up a few times on the mailing list (google for "site:www.zytor.com syslinux password"), and on http://www.zytor.com/pipermail/syslinux/2002-May/000421.html you say interesting things about COMBOOT images. So I was wondering if I could bring that feature request to your attention again :) grub has it,
2005 Nov 09
2
help with legacy R code
Hi there, Could somebody help me disect this legacy R script I inherited at work, I have two questions: 1. I've tried to upgrade our R version from 1.6.2 (yeah, I know), to R 2.0, but some of the lines in this script are not compatible with R 2.0, could someone help me figure out where the problem is? 2. the jpeg generated (attached) seems to be off on some of the data, is there a better way
2003 Nov 28
1
Auto-compress mode for ssh
Hi, I looked in the archives, but didn't see this asked for before: Would it be possible to have an "auto-compress" mode for ssh where compression is turned on automatically if it makes sense? You could turn it on if you don't care about cpu usage and lag, but just about the speed of transfer. The way I see it working is that when running uncompressed, ssh turns on
2007 Jun 22
2
RFE: idle timeout/auto-daemonize combo
Hi there, I would like to have SSH connections be more "sudo-like". With that I mean, when I ssh/scp/sftp to a host and disconnect, the channel is held open for a while in case I reconnect. I wrote a script (attached) that does this. It starts a master SSH daemon for the connection if needed. Then it exec()s SSH. Just put it in your path and use perssh instead of ssh. It has some
2008 May 22
1
bug in R 2.7.0 (PR#11497)
In the latest version R2.7.0 the following command does not work anymore: x <- eval(parse(prompt = paste("give value for x > "))) It does give the pompt, but the object x is not created. We think this is due to a bug in the function parse. best regards, Wout Slob ____________________________________________________________________________ DISCLAIMER:
2008 Apr 21
1
Labelling a secondary axis in R
Hello, How can I label a secondary axis in R? At the moment it's labelled as c(-100,200). Obviously I would like it to be more sensible. Here is the code I am using newx = -100+37.5*((1:9)-1) axis(4,at=newx,labels=(newx+100)/3750) Thanks, Rob -- View this message in context: http://www.nabble.com/Labelling-a-secondary-axis-in-R-tp16807708p16807708.html Sent from the R help mailing list
2010 Mar 27
5
producing a QQ plot.
Hello everyone I'm a beginner in Stats and R, I'm using R 2.10.1. I need to create a multivariate qq plot, there is 8 variable group with each has 55 number of input. An example of what I did so far, just to get my point out: > data=read.csv(file.choose(),header=T) > data country village group av_expen P2ary_ed no_fisher 1 Cook Islands Aitutaki D
2007 May 09
1
predict.tree
I have a classification tree model similar to the following (slightly simplified here): > treemod<-tree(y~x) where y is a factor and x is a matrix of numeric predictors. They have dimensions: > length(y) [1] 1163 > dim(x) [1] 1163 75 I?ve evaluated the tree model and am happy with the fit. I also have a matrix of cases that I want to use the tree model to classify. Call it
2005 May 06
4
Choices from a matrix
Could someone please suggest a more clever solution to the following problem than my loop below? Given X a 2xN matrix X, and I a k-subset of N, Generate the (2^k)xN matrix Y with columns not in I all zero and the other columns with all choices of an entry from the first or second row of X. For example, with X <- matrix(1:8, nrow=2) I <- c(1,3) X is 1 3 5 7 2 4 6 8 and Y should be 1 0 5
2009 Sep 01
1
understanding the output from gls
I'd like to compare two models which were fitted using gls, however I'm having trouble interpreting the results of gls. If any of you could offer me some advice, I'd greatly appreciate it. Short explanation of models: These two models have the same fixed-effects structure (two independent, linear effects), and differ only in that the second model includes a corExp structure for
2012 Mar 12
1
2 images on one plot
Dear all with image I can plot only one set of values in one plot. Do somebody have any insight how to put those 2 matrices into one picture so that in one cell in image picture are both values from mat[1,1] and mat2[1,1]. mat<-matrix(1:4, 2,2) mat2<-matrix(4:1,2,2) x <-1:2 y <-1:2 image(x, y, mat) image(x, y, mat2) The only way I found is to mix x or y for both matrices let
2009 Mar 21
2
limiting simulated animal movement
Hi, I am trying to simulate animal movement in a gridded landscape made up of cells. At each time step (iteration), the animal moves from one cell to another in a random fashion. This is how I am simulating movement, where a and b are the x,y co-ordinates of the animal at the previous time step: for (i in 1:no.of.steps){ direction <- sample(1:8, 1) if(direction == 1){ a <- a b <- b -