similar to: extracting characters from a string

Displaying 20 results from an estimated 500 matches similar to: "extracting characters from a string"

2013 Jan 13
3
extracting character values
Dear all, I have a dataframe of names (netw), with each cell including last name and initials of an author; some cells have NA. I would like to extract only the last name from each cell; this new dataframe is calle 'res' Here is what I do: res <- data.frame(matrix(NA, nrow=dim(netw)[1], ncol=dim(netw)[2])) for (i in 1:x) { wh <- regexpr('[a-z]{3,}',
2013 Jan 15
2
removing loops from code in making data.frame
Dear all, I am working on an author network and to do so I have to arrange a data.frame (tutu) crossing author names (rows) per publication number (column). The participation of the author to a study is indicated by a 1 and 0 otherwise. I have a vector (xaulist) of all the names of authors and a data.frame (tata) with all the publications in row and the authors in columns. I have writen a loop
2010 Apr 19
1
Install latest R version from apt on Lenny
well, I had the site and page and I had added the relevant backport but it didn't work and i keep installing R 2.7 . Don't know why; i probably missed something. #### May be you should add in your mail the file : /etc/apt/sources.list (I suppose there might be a typo, as IT addresses are long and booring, and AFAIK, correcting a typo one made is **very** difficult). FYI binary installs
2013 Jan 11
4
count combined occurrences of categories
Dear all,   i would like to count the number of times where I have combined occurrences of the categories of 2 variables.   For instance, in the dataframe below, i would like to know how many times each author (au1, au2, au3 represent the first, second, third author) is associated with each of the category of the variable 'nam'. The position of the author does not matter.   nam <-
2010 Nov 13
2
interpretation of coefficients in survreg AND obtaining the hazard function for an individual given a set of predictors
Dear R help list, I am modeling some survival data with coxph and survreg (dist='weibull') using package survival. I have 2 problems: 1) I do not understand how to interpret the regression coefficients in the survreg output and it is not clear, for me, from ?survreg.objects how to. Here is an example of the codes that points out my problem: - data is stc1 - the factor is dichotomous
2010 Nov 16
1
Re : interpretation of coefficients in survreg AND obtaining the hazard function for an individual given a set of predictors
Thanks for sharing the questions and responses! Is it possible to appreciate how much the coefficients matter in one or the other model? Say, using Biau's example, using coxph, as.factor(grade2 == "high")TRUE gives hazard ratio 1.27 (rounded). As clinician I can grasp this HR as 27% relative increase. I can relate with other published results. With survreg the Weibull model gives a
2012 Jun 16
5
Not real confident in 3.3
I do not mean to be argumentative, but I have to admit a little frustration with Gluster. I know an enormous emount of effort has gone into this product, and I just can't believe that with all the effort behind it and so many people using it, it could be so fragile. So here goes. Perhaps someone here can point to the error of my ways. I really want this to work because it would be ideal
2007 Feb 14
1
symlinks and different $HOME variables
I have a laptop and desktop that have most of home directory data sync'd, but I am having trouble keeping symlinks straight. On the desktop, my data is separate from the $HOME folder... $HOME = /remote/home/desktop/ and the data is at /data/. Within /data/, I have several directories that are inter-related... eg, /data/pub1/figs is a link pointing to /data/imgs/pub1. It makes life easier
2006 Apr 09
3
Conntrack, nat and multipath - what is wrong here?
I have a gentoo 2.6.14 box with 4 nics, LAN/DMZ/PUB1/PUB2 LAN and DMZ have a 1918 /22 each, PUB1 and PUB2 have a /29 each of which 5 ips are assigned. Using the mangle table, I give all packets a mark (according to local policies) in the range 1-10. Using ip rule, i pass marks 1-5 through the pub1 route table, and marks 6-10 through the pub2 routing table. Using the nat table, I SNAT to one
2010 Aug 05
3
How to extract se(coef) from cph?
Hello, I am modeling some survival data wih cph (Design). I have modeled a predictor which showed non linear effect with restricted cubic splines. I would like to retrieve the se(coef) for other, linear, predictors. This is just to make nice LateX tables automatically. I have the coefficients with coef(). How do I do that? Thanks, David Biau. [[alternative HTML version deleted]]
2012 Dec 13
2
package ‘Design’ is not available (for R version 2.15.2)
Dear all, i have re-installed Debian on my computer and for some reason I cannot install some packages anymore using the install.package command from the R console. Some packages I can, and some I cannot (Design for instance) this is what I get: > install.packages('Design') Installing package(s) into ‘/usr/local/lib/R/site-library’ (as ‘lib’ is unspecified) --- Please select a CRAN
2010 Nov 19
2
intall tcl/tk
Dear Help List, I am trying to install a package (DiagnosisMed) on R (R version 2.10.1 (2009-12-14)) on Debian Lenny (architecture i386). I get the following error message: ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ * installing *source* package ‘DiagnosisMed’ ... ** R ** data ** preparing package for lazy loading Error in firstlib(which.lib.loc, package) : Tcl/Tk support is not available on this
1997 Dec 09
1
Samba not removing lock files?
A non-text attachment was scrubbed... Name: not available Type: text Size: 823 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/19971208/a20d18c1/attachment.bat
2006 Mar 07
9
Oh this is bad.... bindaddr and rtp traffic
I have a configuration where RTP traffic is going out interface pub0, and coming back into through pub1. I have bindaddr=0.0.0.0 in sip.conf, and a netstat -an shows: udp 0 788 0.0.0.0:5060 0.0.0.0:* which means that Asterisk is listening on all addresses (on all interfaces?). Anyway, when the RTP traffic comes back in on interface pub0, Asterisk does nothing with it. A
2004 Dec 14
4
Issues/thoughts re CentOS-4
This is a list of issues for discussion for CentOS-4. Most of it is based on my experience from building/maintaining CentOS-2 and observing CentOS-3. I have not seen the CentOS-4 beta yet so I don't know if any of this is already done. If these have been discussed on IRC then perhaps someone could produce a shot summary of the outcomes....? * Just call it CentOS-4 not 4.1 etc. Too
2010 Aug 13
2
How to compare the effect of a variable across regression models?
Hello, I would like, if it is possible, to compare the effect of a variable across regression models. I have looked around but I haven't found anything. Maybe someone could help? Here is the problem: I am studying the effect of a variable (age) on an outcome (local recurrence: lr). I have built 3 models: - model 1: lr ~ age y = \beta_(a1).age - model 2: lr ~ age + presentation
2011 Mar 27
0
setseed() works well
I tried the following comm in Linux(Ubuntu), It works well: >set.seed(43);runif(3):rnorm(3) >set.seed(43);runif(3);rnorm(3) At 2011-03-26 19:00:05£¬r-sig-debian-request@r-project.org wrote: >Send R-SIG-Debian mailing list submissions to > r-sig-debian@r-project.org > >To subscribe or unsubscribe via the World Wide Web, visit >
2010 Mar 28
2
installing package reshape and plyr on Debian Lenny
Hi all, has anyone tried and possibly succeeded in installing "reshape" package on Debian Lenny? I have a permanent failure because i cannot find the "plyr" package. I tried 10 mirrors. I contacted Hadley Wickham and James Long who seemed to have been closed to do it but it didn't work (meaning so far I haven't the answer from them). So has anyone any ideas as how to
2010 Mar 29
2
how to update r to lattest version on debian lenny?
Hi all, how do you update R on Debian lenny? I have tried to re-install r-base after adding deb http://<favorite-cran-mirror>/bin/linux/debian lenny-cran/ to my backport lists but it keeps installing R 2.7.1. What should I be doing to get the lattest R release? I need it to install a package (plyr) Thanks, David. [[alternative HTML version deleted]]
2010 Mar 29
0
Re : how to update r to lattest version on debian lenny?
If you need a newer version of R for installing the latest version of plyr, perhaps another solution (as very new versions of R -2-11.0- will come out soonly ) , which needs 2 lines of bash!, might be to download an old version of plyr : wget \ http://cran.at.r-project.org/src/contrib/Archive/plyr/plyr_0.1.1.tar.gz and install it R CMD INSTALL plyr_0.1.1.tar.gz (and then reshape