similar to: How to create a new variable based on parts of another character variable.

Displaying 20 results from an estimated 800 matches similar to: "How to create a new variable based on parts of another character variable."

2011 Oct 24
1
How to create a new variable based on parts of another character variable: A generalization
... Well, this works in this simple case, but is too clumsy for a general formulation of this problem: given a "dictionary" consisting of two character vectors of unique "names" (or two columns in a data frame), x and y, how does one convert a factor z with levels in x into the corresponding equivalent with levels in y? There are likely a zillion ways to do this with various
2012 Jan 13
1
Brillouin index
Dear colleagues. I wonder if anybody knows about a procedure in R to calculate the Brillouin Diversity index. I searched the net but did not find anything about it. Thanks a lot for any help Best, Philipp *************************************************** Prof. Dr. Philipp Fischer Head of AWI Center for Scientific Diving & Dept. In situ Ecology Section Shelf Sea Systems
2007 Mar 24
1
frequency tables and sorting by rowSum
Dear list, I have some trouble generating a frequency table over a number of vectors. Creating these tables over simple numbers is no problem with table() > table(c(1,1,1,3,4,5)) 1 3 4 5 3 1 1 1 , but how can i for example turn: 0 1 0 0 0 1 0 1 0 1 0 0 0 1 0 1 0 0 into 0 0 1 1 1 0 0 2 0 1 0 3 My second problem is, sorting rows and columns of a matrix by the rowSums/colSums. I did it
2007 Jul 07
2
random sampling with some limitive conditions?
I want to gain thousands of random sampling data by randomizing the presence-absence data. Meantime, one important limition is that the row and column sums must be fixed. For example, the data "tst" is following: site1 site2 site3 site4 site5 site6 site7 site8 1 0 0 0 1 1 0 0 0 1 1 1 0 1 0 1 1 0 0 0 1 0 1 0 0 0 0 1 0 1 0 1 1 0 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0
2008 Aug 22
1
Help on competing risk package cmprsk with time dependent covariate
Dear R users, I d like to assess the effect of "treatment" covariate on a disease relapse risk with the package cmprsk. However, the effect of this covariate on survival is time-dependent (assessed with cox.zph): no significant effect during the first year of follow-up, then after 1 year a favorable effect is observed on survival (step function might be the correct way to say that ?).
2010 Oct 01
6
Interpreting the example given by Frank Harrell in the predict.lrm {Design} help
Dear list, I am relatively new to ordinal models and have been working through the example given by Frank Harrell in the predict.lrm {Design} help All of this makes sense to me, except for the responses, i,e how do i interpret them? i would be extremely grateful if someone could explain the results? First i establish the date and model - > y <- factor(sample(1:3, 400, TRUE), 1:3,
2002 Feb 20
2
IT WORKS!!!
We're compiling a detailed solution for this problem... We'll be posting it ASAP... Julio Rojas jrojasuft.edu.ve ----- Original Message ----- From: "Mats olsson" <mace2442@hotmail.com> To: <jrojas@uft.edu.ve>; <samba-technical@lists.samba.org> Sent: Wednesday, February 20, 2002 4:05 AM Subject: Re: [Samba] IT WORKS!!! > Howabout publishing the working
2002 Feb 18
1
samba 3.0 -
How do I interpret what this mean? @"prfmstrt2+Domain Users" What is prfmstrt2? Is that a group created in /etc/group or the domain name? I take it the + is a winbind seperator. I modified the separator to be + instead of /, which it appears as by default because everybody seems to be using + for some reason (I thought that was for nis). My domain is INS. I tried to use
2007 Sep 14
2
Problems with quota dict in 1.1.alpha4
Hello, there are problems with quota dict when multiple dovecot deliver processes are launched in parallel. It can be reproduced by sending a mail with multiple different recipients - the mail is delivered OK to all recipients, but the quota are not updated correctly in sql. I looked at the code and it seems that the problem is somewhere in dict cache. If I configure in Postfix max number of
2017 Sep 25
3
rkward_0.6.5-1~stretchcran.0_amd64.deb missing
Hello Johannes: I'm sorry, but I still have the same problem with Rkward. After running apt-get update, I still can not find the amd64 version of the Rkward package. I have tried it with the following sources: deb http://cran.r-project.org/bin/linux/debian stretch-cran34/ deb http://chem.uft.uni-bremen.de/ranke/r-cran stretch-cran34/ deb
2008 Mar 29
3
Generating maps in R
Greetings! I am trying plot some data on a map in R. Here's the scenario. I have a variable called probworkinghealthy which contains a predicted probability of employment for every individual in my sample (about 100,000 observations). I have another variable, called a001ter, which contains the subject of residency in the Russian Federation (akin to a US state) for every individual in the
2017 Sep 26
2
rkward_0.6.5-1~stretchcran.0_amd64.deb missing
Hi Johannes: Thank you very much. Rkward now works. The only drawback is that I had to install it "by hand": sudo dpkg -i rkward_0.6.5-1~stretchcran.0_amd64.deb rkward-data_0.6.5-1~stretchcran.0_all.deb By default, apt-get installed the Debian repository version (rkward 0.6.5-1+b1 0.6.5-1+b1). Thanks for your contributions to the R-Debian project! Regards. Griera. On Mon, 25
2011 Aug 14
3
cant mount degraded (it worked in kernel 2.6.38.8)
# uname -a Linux dhcppc1 3.0.1-xxxx-std-ipv6-64 #1 SMP Sun Aug 14 17:06:21 CEST 2011 x86_64 x86_64 x86_64 GNU/Linux mkdir test5 cd test5 dd if=/dev/null of=img5 bs=1 seek=2G dd if=/dev/null of=img6 bs=1 seek=2G losetup /dev/loop2 img5 losetup /dev/loop3 img6 mkfs.btrfs -d raid1 -m raid1 /dev/loop2 /dev/loop3 btrfs device scan btrfs filesystem show Label: none uuid:
2017 Sep 20
3
rkward_0.6.5-1~stretchcran.0_amd64.deb missing
Hi: I have tried to upgrade from version 3.4.0 to 3.4.1 in a Debian Stretch following the instructions of the web page: https://cran.r-project.org/bin/linux/debian/ but after updating, Rkward does not work (Error in RK: Graphics API version mismatch). Analyzing the problem, I notice that the Rkward package is not available in the amd64 version (yes in the i386 version), for example here:
2006 May 20
1
(PR#8877) predict.lm does not have a weights argument for newdata
Dear R developers, I am a little disappointed that my bug report only made it to the wishlist, with the argument: Well, it does not say it has. Only relevant to prediction intervals. predict.lm does calculate prediction intervals for linear models from weighted regression, so they should be correct, right? As far as I can see they are bound to be wrong in almost all cases, if no weights
2002 Feb 15
1
HEAD problems...
Hi, after Andrew Barlett's advice I reinstalled my Samba server with version 3.0 alpha HEAD. I cannot join my Windows domain. With version 2.2.3a I used the following command: smbpasswd -j DOMAIN -r PDC -U ADMINISTRATOR If I use this command with HEAD, the following message is presented: see 'net rpc join' for this functionality I reviewed the 'net' man page but it's
2006 Jun 02
4
Problems and questions with setting up a Feature Group D trunk to a Nortel DMS-10 switch
I currrently have Asterisk 1.2.8 with a TE110P Zaptel card tied to our Nortal DMS-10 switch via T1. This T1 trunk is configured for Feature Group D MF. The purpose of this is for LD delivery to a VoIP LD provider as a LD choice for our customers off of the DMS-10. When I sieze a channel on the zaptel, I get a spill of digits from the switch that is the called number, and I can see that in
2007 Oct 30
1
postscript(), used from a pre R-2.6.0 workspace
I find that if start R-2.6.0 in a workspace with no .RData file, load one of my workspaces from R-2.5.1 or earlier into R-2.6.0, and then before doing anything else type postscript(file="z.ps"), I get:: > ls() character(0) > load(url("http://www.maths.anu.edu.au/~johnm/r/test5.RData")) > postscript(file="z.ps") Error in postscript(file = "z.ps")
2007 Nov 13
16
mongrel startup fails now: already initialized constant OPTIONS
I updated to ruby 1.8.6p111 last night and updated some gems and now mongrel doesn''t work: MacOS 10.4.10 $ ruby --version ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-darwin8.10.1] $ gem list rails *** LOCAL GEMS *** rails (1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0, 1.1.6) Here''s a simple test: $ rails test5 create ... $ cd test5 $ script/server => Booting
2008 Apr 25
1
samba and openldap authentication issues!
Alight, I've been working on this for too many hours straight. Any help would be much appreciated! (I posted this online to linux questions, it could be easier to read on there... http://www.linuxquestions.org/questions/linux-server-73/samba-and-openldap-authentication-issues-637647/) The problem is users created in smbldap-useradd can not login, unless they also are a local user. for