Displaying 20 results from an estimated 4000 matches similar to: "Counting rows given conditional"
2011 Oct 17
2
Histogram for each ID value
I have a dataframe in the general format:
chr1 0.5
chr1 0
chr1 0.75
chr2 0
chr2 0
chr3 1
chr3 1
chr3 0.5
chr7 0.75
chr9 1
chr9 1
chr22 0.5
chr22 0.5
where the first column is the chromosome location and the second column is
some value. What I'd like to do is have a histogram created for each chr
location (i.e. a separate histogram for chr1, chr2, chr3, chr7, chr9, and
chr22). I am just
2011 Oct 19
1
replacing percentage of values in data frame
I've been looking for how to change a certain percentage of values in a data
frame, but I've been struggling to find information in R.
For example:
#################example data##############
> data
V1 V2 V3 V4 V5 V6 V7
1 chr1 500 500 CHH 0 0.5 +
2 chr1 550 550 CHH 0 0.0 +
3 chr2 700 700 CHH 0 0.0 +
4 chr2 1000 1000 CHH 0 0.0 +
5 chr3
2011 Aug 10
2
Loops for repetitive task
Hello,
I have an R script that I use as a template to perform a task for multiple
files (in this case, multiple chromosomes).
What I would like to do is to utilize a simple loop to parse through each
chromosome number so that I don't have to type the same code over and over
again in the R console.
I've tried using:
for(i in 1:22){
etc..
}
and replacing each chromosome number with
2011 Jul 27
2
Writing a summary file in R
Hello,
I have an input file:
http://r.789695.n4.nabble.com/file/n3700031/testOut.txt testOut.txt
where col 1 is chromosome, column2 is start of region, column 3 is end of
region, column 4 and 5 is base position, column 6 is total reads, column 7
is methylation data, and column 8 is the strand.
I would like a summary output file such as:
2003 Dec 17
3
"getent passwd" doesn't list domain users
__________________
Hi all,
I've configured samba 3.0 as a domain memeber in NT 4.0 domain.
Server has been added to the domain, without any problems, BUT, for three
days...., I'm not able to find a way how to use NT domain resourses for
this samba server. I can list domain users and groups with "wbinfo"
command from but "getent passwd" lists only the local
2011 Jul 01
1
defining new variable
Hello,
I'm new to R and I'm trying to define new quite simple variable but I'm
struggling with R syntax (when coming to dates) for a while and still
getting <errors> on it.
I would be very grateful if someone could help me with this, to be able to
move on.
I have the following variables:
- Transplant.date
- Faildate
- Death.date
The new variable Time should do the
2011 Dec 18
2
Dealing with NAs
Hi
I am trying to estimate parameter values with mlogit. I attach a part of my data.
My code is
x=mlogit.data(y,choice="voittaja",shape="long",id.var="id",alt.var="numero")
summary(mlogit(voittaja ~ Ie-1 , data=x, na.action=na.pass))
But i get
Error in if (abs(x - oldx) < ftol) { :
missing value where TRUE/FALSE needed
Because there is Na
2011 Apr 28
2
for loop with global variables
Hi,
is there a possibility to use global variables in a for loop. More
specifically, I want to do the following:
output.1<-rbind("a","b")
output.2<-rbind("c","d")
output.3<-rbind("e","f")
.
.
.
output.n<-rbind(...,...)
next I want to create a data frame with two columns:
Outputs
Values output.1 "a","b"
2011 May 04
3
SAPPLY function XXXX
Hello everyone,
I am attempting to write a function to count the number of non-missing
values of each column in a data frame using the sapply function. I have the
following code which is receiving the error message below.
> n.valid<-sapply(data1,sum(!is.na))
Error in !is.na : invalid argument type
Ultimately, I would like for this to be 1 conponent in a larger function
that will produce
2001 Jul 24
2
segmentation fault
I'm experiencing segmentation faults from time to time
that abruptely end my R sesion. In such cases, is there
any way to recover the work done? (i.e., is there
any temporal file that I could use?)
Thanks
Agus
Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es
2011 Jul 07
3
coefficients lm of data.frame
Hi,
I've a data frame like this:
> as.data.frame(cbind(rnorm(1:12),rnorm(1:12)))
V1 V2
1 -1.30849402 -0.52094136
2 0.96157302 0.76217871
3 -0.44223351 -1.72630871
4 -0.10432438 -1.04732942
5 -1.38748914 0.95877311
6 -0.63965975 0.65494811
7 -0.24058318 0.19496830
8 -0.11172988 1.01680655
9 0.08065333 0.22168589
10 0.25196536 0.84619914
11
2011 Jun 13
2
log2() and -min() very quick question
I'm looking over good-code a post-doc in my lab wrote and trying to learn
how it works. I came across the following:
rel.abundance <- as.matrix(read.delim("rel.abundance.csv",row.names=1,as.is
=TRUE))
rel.abundance <- log2(rel.abundance-min(rel.abundance)+1)
I'm not sure what the second line is doing. I ran each line in R and
couldn't see a noticeable difference in
2019 Jun 10
1
SAMBA AD VFS:Recycle bad permissions
I had similiar issue on samba 4.8 domain member (new files with wrong
permissions), when I realised that You need to list all modules that You
wish to use in "vfs objects" every time , there is no inheritance from
global -> shares that is if You have e.g.
[global]
...
vfs object = acl_xattr
..
[some share]
...
vfs object = recycle
..
On samba DC "acl_xattr" is
2023 Jan 06
1
Directly setting unicodePwd - better type of hash?
No, I would (probably) not, but I consider samba better product and with it's open nature more versatile.
Anyway, thank you for clarification.
________________________________
Od: samba <samba-bounces at lists.samba.org> za u?ivatele Rowland Penny via samba <samba at lists.samba.org>
Odesl?no: ?tvrtek 5. ledna 2023 14:12
Komu: samba at lists.samba.org <samba at
2010 Nov 09
5
Question regarding to replace <NA>
Dear r-users,
Basically, I have a data as follows,
> data
S s1 s2 s3 s4 s5 prob obs num.strata
1 NNNNN N N N N N 0.0000108 32 <NA>
2 NNNNY N N N N Y 0.0005292 16 <NA>
3 NNNYN N N N Y N 0.0005292 24 <NA>
4 NNNYY N N N Y Y 0.0259308 8 1
....
I want to replace <NA> by 0, when I tried the following
2012 Feb 21
3
Plot Many Data to same plot
Dear all,
I have a function that for a variable number of inputs plots them to the same plot
I am doing this quite simply by
plot(seq(from=start, to=stop, length.out=np), datalist[[1]]$dataset
xlim=c(start, stop), ylim=c(0, 1), type="l")
2019 Aug 26
1
Upgrading samba and OS - can I rejoin ?
On Mon, 2019-08-26 at 23:10 +0200, gizmo via samba wrote:
> Ok, I understood, I should join with a new name.
> But what's the difference between my plans and the docu "Rejoining the upgraded DC" ?
> There is nothing mentioned, that a new name is necessary.
> Is it because I install a new OS and so I start from scratch ?
A new name is not necessary, which is why this
2019 Jun 10
2
SAMBA AD VFS:Recycle bad permissions
On 10/06/2019 08:51, Tom?? Havl?n wrote:
> Hello
> my smb.conf + working and no working ACL share folders
>
> [global]
> netbios name = FENIX
> realm = PFCZ.INTRA
> server role = active directory domain controller
> workgroup = PFCZ
> idmap_ldb:use rfc2307 = yes
> dns forwarder = 10.254.254.1
>
> unix extensions = no
> wide links = yes
> follow symlinks =
2010 Nov 15
5
Sampling problem
Hey,
I am hoping someone can help me with a sampling question.
I have a data frame of 8 variables (the first column is the subjects' id):
SubID CSE1 CSE2 CSE3 CSE4 WSE1 WSE2 WSE3 WSE4
1 6 5 6 2 6 2 2 4
2 6 4 7 2 6 6 2 3
3 5 5 5 5 5 5
2010 Oct 31
10
dedicate nic to drbd in domU
Hi,
i wont separate drbd traffic in domU to eth1 interface.
What is the best way to do that? I think about make eth1 nic passthrough
to my domU. Can i expect some problems with this configuration?
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users