similar to: rownumber

Displaying 20 results from an estimated 11000 matches similar to: "rownumber"

2009 Feb 19
2
Use of ifelse for indicating specific rownumber
Hello I have a dataset named "b2" with 1521 rows, in that dataset i have 64 rows containing specific information. the rownumbers with specific info are: + i [1] 22 53 104 127 151 196 235 238 249 250 263 335 344 353 362 370 389 422 458 459 473 492 502 530 561 624 647 651 666 671 [31] 715 784 791 807 813 823 830 841 862 865 1036 1051 1062 1068
2012 Feb 13
1
only 0s may be mixed with negative subscripts
I'd like to get the sum of every other row in a data.frame. When I actually set about doing this, I get the error in the subject line of this message. A sample of my data is below, followed by the function call that should give me the results I want: > dput(head(sens2)) structure(list(Time = c(1328565067, 1328565067.05, 1328565067.1, 1328565067.15, 1328565067.2, 1328565067.25), Y =
2006 Aug 08
1
locating intervals (corrected version)
I have corrected a typo in my previous posting. In what follows the line with the inequality is correct Hi , I have two sorted vectors X and Xi, where the range of Xi lies within the range of X. For an element in Xi, I want to find the neigbouring data in X, e.g. find an index ix so that for element number k, then X[ix[k]] < Xi[k] < X[ix[k] +1] # also OK with "<=" on either
2004 Nov 23
2
sorting without order
Hello, In order to increase the performance of a script I'd like to sort very large vectors containing repeated integer values. I'm not interesting in having the values sorted, but only grouped. I also need the equivalent of index.return from the standard "sort" function: f(c(10,1,10,100,1,10)) => grouped: c(10,10,10,1,1,100) ix: c(1,3,6,2,5,4) is there a way
2005 Sep 26
3
How to get the rowindices without using which?
Hi, I was wondering if it is possible to get the rowindices without using the function "which" because I don't have a restriction criteria. Here's an example of what I mean: # take 10 randomly selected instances iris[sample(1:nrow(iris), 10),] # output Sepal.Length Sepal.Width Petal.Length Petal.Width Species 76 6.6 3.0 4.4 1.4
2003 Feb 08
3
to modify a vector
Hi All. I am quite a newbie to R. This is a basic question. I like to modify elements of a vector. For Example: a1 <- c(1,2,3,4,3,5) TThe following program sentence does not work but the intention is; if (a1==3) a1*3 . 3 in the vector should be changed to 9, and the resulted vector is (1,2,9,4,9,5). How can I get the result? Thanks in advance for help. -------========-------- mitsu5
2008 Jul 20
3
Order of columns(variables) in dataframe
Dear R experts,   I have a dataframe with 4 columns (variables). I want to redorder (or reposition) these columns on the basis of a value in its last row. e.g.   df1<-data.frame( v1= c(2,3,1,9,5), v2=c(8,5,12,4,11), v3=c(7,8,2,6,9), v4=c(1,4,6,3,6))    > df1    v1 v2 v3 v4 1  2  8  7  1 2  3  5  8  4 3  1 12  2  6 4  9  4  6  3 5  5 11  9  6 I wanto to get the order of df1 on the basis of
2012 Jun 15
0
argument "x" is missing, with no default - Please help find argument x
R programming question, not machine learning, although that's the content. Apologies to all for whom the following code is eye-burning. I am using foreach() to run a simulation on a randomForest model (actually conditional randomForest ... "party" package). The simulation is in two dimensions. examining how "mtry" and "ntrees" are related in terms of predictive
2005 Jul 13
1
help: how to plot a circle on the scatter plot
Hello, I have a data set with 15 variables, and use "pairs" to plot the scatterplot of this data set. Then I want to plot some circles on the small pictures with high correlation(e.g. > 0.9). First, I use "cor" to obtain the corresponding correlation matrix (x) for this scatterplot. Second, use "seq(along = x)[x > 0.9]" to find the positions of the small
2006 May 02
3
file_column : _temp field always nil
Hi, I''m trying to set up file_column to upload attachments for emails. My view has <td align="left"><%= file_column_field ''to_do'', ''attachment'' %></td> and the attachment_temp hidden field is generated. When I inspect tthe params on saving the form the attachment_temp param is always an empty string. Also, when I was
2010 Oct 28
3
ACtive directoryin Ubuntu
Hi, My name is Tommie, I am new to tthe list...greetings to you all. I have a couple of quetions. Our college network is running on Debian and Ubuntu, we are trying to migrate the rest of the services to Ubuntu... the Active Directory is the one that is still using windows. My questions are: How can i substitute the windows Active Directory by Samba? How can i migrate Active Directory users to
2018 May 22
2
Plot qualitative y axis
Many thanks, My goal is to make a plott like attached but the Y axis starts in XIV and end at top in I. Generally for instance in excel X axis is categories but Y axis is numbers I want the contrary plotted in lines, your last help is near what I look but barplot is not needed. Hope you can help me thanks in advance. 2018-05-22 0:58 GMT+02:00 Jim Lemon <drjimlemon at gmail.com>: > Hi
2006 Jan 19
6
Dynamic Programming in R
Hi R users, I am looking to numerically solve a dynamic program in the R environment. I was wondering if there were people out there who had expereinced success at using R for such applications. I'd rather continue in R than learn Mathlab. A concern that has been cited that may discourage R use for solving dynamic programs is its memory handling abilities. A senior researcher had a lot of
2018 May 21
2
Plot qualitative y axis
Hi all, I?m trying to plot this data N M W I 10 106 II 124 484 III 321 874 IV 777 1140 V 896 996 VI 1706 1250 VII 635 433 VIII 1437 654 IX 693 333 X 1343 624 XI 1221 611 XII 25 15 XIII 3 XIV 7 8 So that in de Y axis will be the level (qualitative data) and in the X axis will be M and W variables. So x axis will be wwith a lenght between 0 and 2000. I would like to plot a line with M and other
2008 Mar 11
1
Jpeg and pixel
Hi guys, I've got tthe following question: Why do my fonts look a bit grubby when I use the jpeg() function? I see the pixels of the font. The quality is set to 100%. If this is normal with jpeg(), which function would you propose me to use instead? Kind regards, Thomas ________________________________ I'm using R 2.6.2 on Windows XP, SP2 [[alternative HTML version deleted]]
2007 Sep 12
2
Problems with Asterisk behind a firewall
Hi all, I have set up Asterisk and I am able to register with my SIP provider and receive calls. When I try to register with Asterisk from outside I can place calls but tthe other person can't hear me. Have opened port 5060 UDP as well as port 10000 to 20000 UDP. Any ideas? Thanks, Christian
2014 Sep 25
1
RPM install/upgrade problem
Hi, For the last few updates I'm having a yum problem. # yum update gives the following error for e.g. Running transaction Updating : bash-4.2.45-5.el7_0.2.x86_64 1/10 Error unpacking rpm package bash-4.2.45-5.el7_0.2.x86_64 error: unpacking of archive failed on file /usr/bin/alias;5423b9bc: cpio: open The same problem happens if I try to use rpm for the update so it
2024 Mar 21
2
CyberPower PR3000LCDRTXL2U and NUT 2.8.0 - mute?
I have a CyberPower PR3000LCDRTXL2U with a BP48V75ART2U expansion chassis, which I am monitoring using NUT 2.8.0 (on Gentoo Linux). TThe UPS appears to be telling me that the batteries need replacement due to age. CyberPower support has confirmed that for me and told me how i should be able to mute the alarm from the front panel until I can replace the batteries, but it doesn't appear
2005 Nov 23
2
vector of permutated products
Given an x-vector with, say, 3 elements, I would like to compute the following vector of permutated products (1-x1)*(1-x2)*(1-x3) (1-x1)*(1-x2)*x3 (1-x1)*x2*(1-x3) x1*(1-x2)*(1-x3) (1-x1)*x2*x3 x1*(1-x2)*x3 x1*x2*(1-x3) x1*x2*x3 Now, I already have the correctly sorted matrix of permutations! So, the input looks something like: #input x<-c(0.3,0.1,0.2) Nx<-length(x) Ncomb<-2^Nx
2001 Oct 03
1
package GeneSOM ?
Hello Rprofessionals, The SOM-Obj works very well, when i normalize my data and the plot-function, too ! But i miss or didn't find the possibility , extract the information from the SOMplot "clusterSize" and "mean" for every cluster as quantitative information ( i.e. the DataFrame with an additional column which define the calculate clusters from SOM)? My intention -