similar to: From a vector with characters to binary information

Displaying 20 results from an estimated 1000 matches similar to: "From a vector with characters to binary information"

2012 Sep 24
4
serial subtraction within a vector
Hello, I have a vector (numeric) v-> c(a,b,c,d,e) and I want to create the vector n->c(b-a,c-b,d-c,e-d). How can I do that? Thank you Hermann [[alternative HTML version deleted]]
2013 Jan 03
5
count appearence of zero in a vector
Hello, I wish to count how often zero (0) appears in the vector test. test [1] 1 1 1 1 1 1 2 1 1 1 0 2 0 1 1 0 0 0 1 1 1 0 1 2 1 1 1 1 1 1 I think of something like ... > sapply (test, function (x) if (x==0 ... ... but actually I dont know how to carry on. Could anybody give me a hint? Thanks Hermann [[alternative HTML version deleted]]
2012 Sep 05
2
Installing lumi and hdrcde
To whom it may concern. As I would like to analyse some array data I was keen on downloading the lumi package that depends obviously on hdrcde that is not available for r 2.12.1. I did not find instructions to solve or circumvent this problem. Installing hdrcde by hand did not work either. It was not detected by > (.packages(all.available=TRUE)) if installed in the R library. Thanks Hermann
2012 Sep 15
2
qplot: plotting precipitation data
Dear list, I wish to plot chromatin precipitation data: I would like to have a rectangles (x:end-start, y:peak) but I do not have an idea how to define x (in terms of qplot syntax) and to choose the correct geom. mydata is a subset of a larger file. > mydata chrom start end peak 1 chr11 5291000 5291926 8 2 chr11 10988025 10988526 7 3 chr11 11767950 11768676 8 4
2012 Sep 10
3
plot: x and y chromosomes are missing
Hello, I have a list with gene names, fold changes (=expression level) and chromosomes. Names fold change chromosome hz 1.5 2 If I plot fold change versus chromosome (or vice versa): plot (ch, fc) I see only the chromosomes with numbers but not those with letter (x and y). What can I do? A second question: How can I add a single line in that plot at a certain
2013 Nov 08
2
making chains from pairs
Hello, having a data frame like test with pairs of characters I would like to create chains. For instance from the pairs A/B and B/I you get the vector A B I. It is like jumping from one pair to the next related pair. So for my example test you should get: A B F G H I C F I K D L M N O P > test V1 V2 1 A B 2 A F 3 A G 4 A H 5 B F 6 B I 7 C F 8 C I 9 C K 10 D L
2012 Nov 05
2
fusion of overlapping intervals
Hello, I have start and end coordinates from different experiments (DNase hypersensitivity data) and now I would like to combine overlapping intervals. For instance (see my test data below) (2) 30-52 and (3) 49-101 are combined to 30-101. But 49-101 and 70-103 would not be combined because they are on different chromosomes (chr a and chr b). Does anybody have an idea? Thanks Hermann > df
2012 Nov 01
2
subset a defined row plus the aforegoing
Hello, my data is sorted by start.ens (see below). And now I would like to extract all rows (so called* defined row*s) with type==Expression - subset (df, type==Expression) - and the aforegoing type==DNase HS (which is not necessarly row n-1 - assumung that the defined row is n). I dont know how to add this to my subset command. Is that possible? Thanks Hermann > df start.ens fc.trans
2012 Mar 13
2
beginner's loop issue
Dear All, I hope you don't mind helping me with this small issue. I haven't been using R in years and I'm trying to fill in a matrix with the output of a function (I'm probably using the Matlab logic here and it's not working). Here is my code: for (i in 1:length(input)){ out[i,1:3] <- MyFunction(input[i,1],input[i,2], input[i,3]) out[i,4:6] <-
2018 Nov 26
1
Howto enable ldapi socket?
Hi Rowland! On 26.11.18 19:37, Rowland Penny via samba wrote: > [..] > adminuser at ubutestdc:~$ ls -la /var/lib/samba/private/ldapi > srwxrwxrwx 1 root root 0 Nov 25 17:13 /var/lib/samba/private/ldapi Also strange: # dpkg-query -l *samba* Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten | Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/         
2015 Feb 16
2
Small typo in german translation
Dear developers, I found a small typo in the german translation for the aggregate() function: In the string "keine Zeile f?r die Aggragation" it should be spelled 'Aggregation' instead of 'Aggragation' (e instead a). After a quick look into the sources, I found two places for it: #grep -r -e "Aggragation" * src/library/stats/po/R-de.po:msgstr "keine
2001 Dec 14
3
libvorbis and vorbis
Hello there, I use Redhat 7.1 and KDE2.2.2. There is always a dependency problem when I upgrade "kdebase". This needs "libvorbis". Instead of "libvorbis" I have a package called "vorbis-1.0beta4-3".I downloaded a new package called"libvorbis-1.0rc2-1". When I tried to installed it, there is a conflict problem: file
2002 Oct 21
2
strange problem with pxelinux - Config file size limit?
Hi, I have some strange problem with pxelinux. I have a quite big config file (>8K), with much labels (29), long append's and some texts on the F-Keys (F1-F5). This works as expected, pxelinux loads all labels without a peep. Now I added 'kbdmap kbd-de' to this config file - and I get strange errors all over. pxelinux reports several times 'Unknown keyword in config file.'
2013 Oct 03
1
prcomp - surprising structure
Hello, I did a pca with over 200000 snps for 340 observations (ids). If I plot the eigenvectors (called rotation in prcomp) 2,3 and 4 (e.g. plot (rotation[,2]) I see a strange "column" in my data (see attachment). I suggest it is an artefact (but of what?). Suggestion: I used prcomp this way: prcomp (mat), where mat is a matrix with the column means already substracted followed by a
2012 Jul 17
1
problem with function
Dear list, I have a problem with defining a function (see below) to read my testfile (see testfile). My function only returns mydata I wish to work with attr(mydata, 'fc') as well (for labelling a plot). Principally it works if I do not insist on this function but it would be much easer if it is possible to return mydata AND attr(mydata, 'fc') by using a function. 1) testfile:
2010 Aug 04
1
[3.4.8/Debian Testing amd64] dpkg-build-package fails with linker error
Hello, I am facing a problem when rebuilding Samba 3.4.8dfsg2 on Debian Testing. Command used: "dpkg-buildpackage -uc -us -rfakeroot --source-option=--format=1.0" Linking bin/smbcontrol /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.4/../../../../lib/libunwind-ptrace.a(_UPT_access_fpreg.o): relocation R_X86_64_32S against `_UPT_reg_offset' can not be used when making a shared
2016 Nov 16
2
Disk size on share with multiple partitions
Am 16.11.2016 um 15:11 schrieb Volker Lendecke: > On Wed, Nov 16, 2016 at 03:02:20PM +0100, Jochen Eggemann via samba wrote: >> Thanks for the fast reply Volker, >> >> I tried using this, but get following Errors: >> >> ../source3/lib/system.c:1143(sys_popen) sys_popen: ERROR executing command >> '/usr/bin/dfree .': Fehler im Format der Programmdatei
2011 Mar 19
3
Sieve or not?
Hello, I use V 2.11 and my question is: Is one present Sieve with this version or MUST this specially compiles? # 2.0.11 (31d8d43fa6b5): /etc/dovecot/dovecot.conf # OS: Linux 2.6.29.4 i686 Debian wheezy/sid -- Mit freundlichen Gr??en, Jim Knuth P.S.: Bitte senden Sie KEINE HTML-Mails! ##### Zufallszitat: Der Fanatismus ist die einzige 'Willensst?rke', zu der auch die Schwachen
2016 Nov 16
2
Disk size on share with multiple partitions
Am 15.11.2016 um 13:00 schrieb Volker Lendecke: > On Tue, Nov 15, 2016 at 12:25:32PM +0100, Jochen Eggemann via samba wrote: >> Hi list, >> >> I am exporting share which has a small base partition into which several >> much larger partitions are mounted. Which are used by different user groups. >> >> My problem is, that windows takes the size of the base
2023 Nov 27
1
Apps moving to laptop display when switching KVM
So I installed CentOS Stream 9 on a new Lenovo T14 Gen 4 Intel. I have a 4x1 HDMI KVM with external monitor. When switching the KVM, apps move between displays / workspaces in erratic ways. More specifically, when switching out, apps on the external display usually move to the laptop display. This sorta makes sense for a laptop with an external display. When the external display is