Displaying 12 results from an estimated 12 matches similar to: "Cut intervals (character) to numeric midpoint; regex problem"
2007 Aug 10
1
[Fwd: Re: How to apply functions over rows of multiple matrices]
[Apologies to Gabor, who I sent a personal copy of the reply
erroneously instead of posting to List directly]
[...]
> Perhaps what you really intend is to
> take the average over those elements in each row of the first matrix
which correspond to 1's in the second in the corresponding
> row of the second. In that case its just:
>
> rowSums(newtest * goldstandard) /
2008 Sep 26
1
auto.arima help
I am calling auto.arima with a time series that is about 186 observations long with a frequency of 52. With some time series I get:
1:last.nonzero: result would be too long a vector
Is there something that I can do to the data to avoid this error?
Thank you.
Kevin
2010 Jul 23
1
Midpoint between coordinates
Dear R users,
I need to find the coordinates for the point (midpoint) located half
way between two pairs of coordinates (lon1,lat1 and lon2,lat2)
assuming a straight line between them. What would be the best way? I
tried to find an answer in the help archives but without success. I
would greatly appreciate any help.
df<- data.frame(lon1=c(-4.568,-4.3980), lat1=c(59.235,56.369),
2013 Apr 06
5
arrange data
Hello all!
I have a problem to arrange data in another form. My initial data is like
this:
'data.frame': 421 obs. of 58 variables:
$ 01A: num NA NA NA NA NA NA NA NA NA NA ...
$ 01B: num NA NA NA NA NA NA NA NA NA NA ...
$ 03A: num NA NA NA NA NA NA NA NA NA NA ...
$ 03B: num NA NA NA NA NA NA NA NA NA NA ...
$ 05A: num NA NA NA NA NA NA NA NA NA NA ...
$ 05B: num NA NA NA NA
2011 Jul 01
13
For help in R coding
Dear all,
I am doing a project on variant calling using R.I am working on pileup file.There are 10 columns in my data frame and I want to count the number of A,C,G and T in each row for column 9.example of column 9 is given below-
.a,g,,
.t,t,,
.,c,c,
.,a,,,
.,t,t,t
.c,,g,^!.
.g,ggg.^!,
.$,,,,,.,
2008 Apr 25
2
Ubuntu vs Mac OS X
Hi !
I have installed R-2.7.0 64-bits on a computer where the new Ubuntu
version (8.04) was installed. This computer is a 3.2 GHz Dual-core with
2 Gb of RAM.
To test how fast (I though !) this machine is, I compared two simple
matrix manipulations between Ubuntu and my laptop (a MacBook Pro 2.2 GHz
with also 2 Gb of RAM under Mac OS X 10.5.2). By the way, I install the
normal version of R
2007 Aug 11
0
DOE and interaction plot general question
This is a general question about Design of experiments. If i am not allowed
to post general questions like this here please accept my apologies and
ignore the question.
I did a DOE with six factors in eight runs. I know i cannot check for
interactions using this design, but i tried the interaction plot and it
showed me many interactions. After this I foldover the design and ran the 8
runs to learn
2011 Aug 17
2
Getting vastly different results when running GLMs
Dear R gurus
I am analysing data from a study of behaviour and shade utilization of
chimpanzees. I am using GLMs in R (version 2.13.0) to test whether shade/sun
utilization is predicted by behaviour observed. I am thus interested in
whether an interaction of behaviour (as a predictor) and presence in the
sun/shade (also predictor) predicts the counts I have for the respective
categories.
I have
2018 Aug 24
0
Nouveau doesn't detect DVI - Monitor
Hello,
I'm new here, and I hope I can get any help. At first I thought this is
a support mailing list, but it looks more like one for developers.
I'm using Nouveau in ubuntu bionic. My problem is, when I connect a
second Monitor to my Laptop on DVI-D connector, the monitor is not
detected, Nouveau reports it as "disconnected".
The Hardware works, because the BIOS uses the
2009 Nov 08
3
Obtaining midpoints of class intervals produced by cut and table
Hello list:
I am using "cut" and "table" to obtain a frequency table from a numeric sample vector. The idea is to calculate mean and standard deviation on grouped data. However, I can't extract the midpoints of the class intervals, which seem to be strings treated as factors. How do i extract the midpoint?
Thanks,
jose loreto
[[alternative HTML version deleted]]
2004 Nov 24
1
what does order() stand for in an lme formula?
I'm a beginner in R, and trying to fit linear models with different
intercepts per group, of the type y ~ A*x1 + B, where x1 is a numerical
variable. I cannot understand whether I should use
y1 ~ x1 +1
or
y1 ~ order(x1) + 1
Although in the toy example included it makes a small difference, in models
with many groups the models without order() converge slower if at all!
2013 Feb 27
1
Separation issue in binary response models - glm, brglm, logistf
Dear all,
I am encountering some issues with my data and need some help.
I am trying to run glm analysis with a presence/absence variable as
response variable and several explanatory variable (time, location,
presence/absence data, abundance data).
First I tried to use the glm() function, however I was having 2 warnings
concerning glm.fit () :
# 1: glm.fit: algorithm did not converge
# 2: