similar to: Extract number from string

Displaying 20 results from an estimated 300 matches similar to: "Extract number from string"

2010 May 09
4
Fwd: R apply() help -urgent
---------- Forwarded message ---------- From: Dr. Venkatesh <drvenki at liv.ac.uk> Date: Sun, May 9, 2010 at 4:55 AM Subject: R apply() help -urgent To: r-help at r-project.org I have a file with 4873 rows of 1s or 0s and has 26 alphabets (A-Z) as columns. the 27th column also has 1s and 0s but stands for a different variable (pLoss). columns 1 and 2 are not significant and hence lets
2010 Jan 12
5
Drop last numeral
Hello all, Frustrated and i know you can help I need to drop the last numeral of each of my values in my data set. So for the following i have tried the ?substring but since i have to specify the length, but because my data are of varying lengths it doenst work so well Data<-c("1131", "1132", "1731" ,"1732" ,"1821" ,"1822",
2006 Jul 28
1
spliting
Dear mailing list, I have a big data frame and each element in the matrix has two alphabets. I want to split those alphabets into two so each element will have one alphabet and the number of my columns will be doubled . So can some one help with the code? Example of what I want is to split them. Input (three column) GG AG AG CC CC CC CC CC CC AG
2007 Dec 13
1
Number of ways to select population members
Hi all, Suppose I have a population of 3 alphabets : A, B, C. From this population, number of ways that any 2 can be chosen is 3 i.e. AB, AC, and BC. Is there any R function to generalize this process, for any number of alphabets/numbers and for any sub-sample size? Thanks and regards, --------------------------------- [[alternative HTML version deleted]]
2003 Jul 23
2
fireworks 4
Hi I'm dual booting between win98se and mandrake. I have fireworks 4 on the windows partition. I cannot open fireworks 4 using wine - wine Fireworks 4.exe I have noticed this with linux, that if there is a space -like there is between the word fireworks and the numeral 4 - linux wont proceed. Is there a way around this? Any help/suggestions will be appreciated. Thanks in advance.
2007 Apr 17
2
help comparing two median with R
Dear R users, I am new to R and I would like to ask your help with the following topic. I have three sets of numeral data, 2 sets are paired and a third is independent of the other two. For each of these sets I have obtained their basic statistics (mean, median, stdv, range ...). Now I want to compare if these sets differ. I could compare the mean doing a basic T test . However, I was
2008 Dec 01
1
request: how to assign alphabets to integer values
Dear R community I am trying to assign alphabets to integer values 1, 2, 3 etc. in y given below. Can any body suggest some simple way to do the same job? ds=iris; dl=nrow(ds) c1=ds[,1]; c2=ds[,2]; c3=ds[,3]; c4=ds[,4]; c5=ds[,5]; iris=cbind(c1,c2,c3,c4,c5) y=iris[,5] y1=which(y==1); y[y1] <- c("a"); y2=which(y==2); y[y2] <- c("b"); y3=which(y==3); y[y3] <-
2012 Mar 01
2
range of group variables
Dear All, I hope to run some simple survival analysis using the cox-proportional hazard models in R, my command will look like below: cox <- summary( coxph( Surv( mortality , TIME ) ~ Independent variables ) ) My query is about specifying a range of independnt variables in R, such that each independent variable is included as the main defining variable independently of other variables in the
2019 May 24
2
Bash completion thrown by quoted option args?
Leroy Tennison writes: > I am going to take a really wild guess and say "Try replacing the outermost quotes with single quotes or escape the double quotes around the numeral 1". Your second example has double quotes within double quotes and I'm wondering if that's getting rendered as "yum --debuglevel=" 1 " install ..." (extra space added for
2010 Oct 08
2
font question on pdf device
Hi, I wonder if this is something on my machine locally or R in general. When I do the following: > plot(c(0,1),c(0,1),main=expression(paste(symbol("D"),"D",sep=""))) I get a plot with a title having uppercase delta followed by "D". But in the following > pdf(file="deltaTest.pdf") >
2012 May 17
1
how to download source code, pdf manual for any package from internet?
i can get list of available packages by > r<-available.packages() No of available packages > length(r[,1]) [1] 3739 single package name > r[1,1] [1] "ACCLMA" i want download all packages starting with "A" / "a" alphabets, with their source code, pdf manual/vignettes from internet -- View this message in context:
2010 Sep 13
1
Transforming character vector
Hi guys, Cant seem to find a solution for this. I am looking for a substitute for cut that can transform character vectors. So as cut would be used below to transform YearCat-> YearCat2 base on Year and vector Ag<-c("00-'70","'71-'75","'76-'85","'86-'09") using 'cut '
2006 Jun 14
2
data managment
First I would really like to thank the mailing list for help I got in the past, as a new to R I am really needing some support on hoe to code the following problem. I am trying to sort some data I have in a big file. The file has 4 columns and 19000 rows. An example of it looks like this:- G 0.892 A 0.108 G 0.883 T 0.117 T 0.5 C
2013 Oct 19
3
bold dot size and name in plot
Dear useRs, I have the following data "z" of two variables "x"(z[,1]) and "y"(z[,2]). > dput(z) structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66,
2019 May 24
4
Bash completion thrown by quoted option args?
wwp writes: > Hello isdtor, > > > On Fri, 24 May 2019 09:33:55 +0100 isdtor <isdtor at gmail.com> wrote: > > > Leroy Tennison writes: > > > I am going to take a really wild guess and say "Try replacing the outermost quotes with single quotes or escape the double quotes around the numeral 1". Your second example has double quotes within double
2012 Jan 15
1
Correct Localized Numbers on Plots, related to glibc!
Dear R Helpers, I want to localize my plots, i.e. the numbers by x & y axis be Persian, using Persian numerals and Persian decimal separator. I change the locale to fa_IR.utf8, but nothing on plots change. I can change the numerals shaping to Persian ones (???? instead of 1234) using some non-standard fonts but the decimal point is a problem. I asked about that in Persian-Computing mailing
2009 Nov 23
4
Check if string has all alphabets or numbers
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091123/470946bc/attachment-0001.pl>
2006 Jan 18
4
Ruby "htmlentities" replacement: code review please!
Hi Railers, For some time now I''ve been looking for a decent Rails equivalent of PHP''s "htmlentities" command, because ERB''s html_escape (or more commonly called as just "h", eg. <%=h @somevariable %> ) just doesn''t go far enough for me. Back in PHP land, I actually had an extended version of the htmlentities command to deal with
2004 Feb 16
1
Documentation bug? domadm privileges
Hello I have been solving a problem how to make a nonroot user able to administer the domain (add users, groups, modify them etc.) from Windows workstation using usrmgr.exe It looks like what is stated in Samba HOWTO collection as prerequisites is not enough. First I found Chapter 12 cxl "How to make Samba PDC users member of the Domain Admins group" - made the nonroot user member of
2016 Feb 15
3
Issues in Example code
Hi My name is Shiv and I am student at IIIT-D ( http://www.iiitd.edu.in/ ) pursuing my undergrad education in Computer Science. I am currently in my final year. I am following the Xapian Gsoc guide ( https://trac.xapian.org/wiki/GSoC%20Guide#Mentoring). I have successfully checked out and built the code. I am trying out the python codes given at (