Displaying 20 results from an estimated 600 matches similar to: "Conditional sorting"
2010 Mar 26
3
Using lapply with two lists
Hello guys,
I have a list L1 of matrix. I have another list L2 with the same number of
elements representing the row of the L matrix that I want to delete
(L1[[i]][-L2[[i]],]) but I can't do this with lapply as it iterates through
L1 (first argument) and not L2. Any idea?
-----
Anna Lippel
--
View this message in context:
2011 Mar 07
4
png inside loop
hello list! I'm sorry, I just stumbled over this strange behaviour (at
least I am not able to explain the behaviour, therefore I assume it to
be a strange behaviour):
attach(water) # I know, this is not recommended
names(water[3:10])
[1] "temp" "pH" "DO" "BOD" "COD" "no3" "no2" "po4"
for (i in
2010 Feb 15
1
error message error
Hi r-users,
I hope somebody can help me to understand the error message. Here is my code;
## Newton iteration
newton_gam <- function(z)
{ n <- length(z)
r <- runif(n)
tol <- 1E-6
cdf <- vector(length=n, mode="numeric")
fprime <- vector(length=n, mode="numeric")
f <- vector(length=n, mode="numeric")
for (i in 1:1000)
{
2015 May 08
3
pregunta
Estimados
Al dirigir la lectura de un folder tYA1.csv me da este error y no me percato del motivo, adjunto archivo. Espero su ayuda
Saludos
Jos?
> setwd("D:/Public/Documents/R/bioimpedancia")
> a<-read.csv("tYA1.csv",header=TRUE, sep=",", dec=".")
Error in read.table(file = file, header = header, sep = sep, quote = quote, :
more
2007 Apr 20
2
sorting data in R
hello,
I'd like know how to sort a data frame in R for example how I should do to sort by Catholic with swiss data frame like below
thanks
Fertility Agriculture Examination Education Catholic Infant.Mortality
Courtelary 80.2 17.0 15 12 9.96 22.2
Delemont 83.1 45.1 6 9 84.84 22.2
2005 Apr 14
2
rpm problem with centos4
rpm-4.3.2
rpm-build-4.3.2-21
[root at tarkus i386]# rpm -ivh *
error: Failed dependencies:
compat-libstdc++-33-3.2.3-47.3 is needed by
opennms-1.3.0-0.20050413.0_centos4.i386
[root at tarkus i386]# rpm -q compat-libstdc++-33-3.2.3-47.3
compat-libstdc++-33-3.2.3-47.3
Any idea on how to deal with this?
This is with rpms build from opennms head.
Regards,
Ted
2012 Jul 06
4
differences between survival models between STATA and R
Dear Community,
I have been using two types of survival programs to analyse a data set.
The first one is an R function called aftreg. The second one an STATA
function called streg.
Both of them include the same analyisis with a weibull distribution. Yet,
results are very different.
Shouldn't the results be the same?
Kind regards,
J
--
View this message in context:
2009 Jan 04
1
Lattice xyplot help please.
Hi -
I am not R expert and I would appreciate your time if you can help me
about my xyplot question.
I would like to add text (p-value) in a 4 panels xyplot. I thought
panel = function{} should work but I am not sure where I did it wrong.
The error message from the following code is
"Argument subscripts is missing with no default values"
xyplot(GLG ~ PD | factor(TRT) , groups =
2008 May 22
2
1501-511 Compilation failed for file ch2inv.f - R on AIX 5.2.
Hi,
While executing the make after successful configuration (./configure
--with-readline=no --without-iconv), the following error occurs:
mbf2n11s (Regatta) /saswork/R/R-2.7.0$ make
Target "R" is up to date.
Target "R" is up to date.
Target "R" is up to date.
Target "R" is up to date.
Target "Makedeps" is up to date.
Target "libbz2.a"
2019 Jul 23
2
[PATCH] virtio-net: parameterize min ring num_free for virtio receive
On 2019/7/20 0:13, Michael S. Tsirkin wrote:
> On Fri, Jul 19, 2019 at 03:31:29PM +0000, ? jiang wrote:
>> On 2019/7/19 22:29, Jiang wrote:
>>> On 2019/7/19 10:36, Jason Wang wrote:
>>>> On 2019/7/18 ??10:43, Michael S. Tsirkin wrote:
>>>>> On Thu, Jul 18, 2019 at 10:42:47AM -0400, Michael S. Tsirkin wrote:
>>>>>> On Thu, Jul 18, 2019
2019 Jul 23
2
[PATCH] virtio-net: parameterize min ring num_free for virtio receive
On 2019/7/20 0:13, Michael S. Tsirkin wrote:
> On Fri, Jul 19, 2019 at 03:31:29PM +0000, ? jiang wrote:
>> On 2019/7/19 22:29, Jiang wrote:
>>> On 2019/7/19 10:36, Jason Wang wrote:
>>>> On 2019/7/18 ??10:43, Michael S. Tsirkin wrote:
>>>>> On Thu, Jul 18, 2019 at 10:42:47AM -0400, Michael S. Tsirkin wrote:
>>>>>> On Thu, Jul 18, 2019
2019 Jul 19
1
[PATCH] virtio-net: parameterize min ring num_free for virtio receive
On 2019/7/19 22:29, Jiang wrote:
>
> On 2019/7/19 10:36, Jason Wang wrote:
>>
>> On 2019/7/18 ??10:43, Michael S. Tsirkin wrote:
>>> On Thu, Jul 18, 2019 at 10:42:47AM -0400, Michael S. Tsirkin wrote:
>>>> On Thu, Jul 18, 2019 at 10:01:05PM +0800, Jason Wang wrote:
>>>>> On 2019/7/18 ??9:04, Michael S. Tsirkin wrote:
>>>>>> On
2008 Nov 04
2
use abline() for regression model in the plot
http://www.nabble.com/file/p20332968/spe.dat spe.dat
Hi,
i have a problem in sorting out some command in R and i am really hoping
some expert can help me out please!
i have the spe.dat file which i upload here, and when u read into R u got
something like this:
A5 <- read.table('spe.dat' ,header=TRUE)
A5
EXPEND ECAB MET GROW YOUNG OLD WEST STATE
1 256 85.5 19.7 6.9 29.6
2017 Oct 26
2
Help needed with aggregate or other solution
Hello all!
I've been struggling with is for many hours today; I'm close to getting
what I want, but not close enough...
I have a dataframe consisting of two date-time columns followed by two
numeric columns. what I need is the max value (in the first numeric column)
based on the 2nd date-time column, which is essentially a factor. But, I
want the result to provide both date-time values
2017 Oct 26
3
Help needed with aggregate or other solution
Hi Jeff,
Thank you for the suggestions -- I appreciate your help. Unfortunately, the
result2 has two problems...
(1) there are now 3 date columns (it looks like 2 cols are merged into 1
col)
(2) the output rows should not have any of the basistime dates repeated
(maybe I misstated the problem); I need the max fcst value by basistime,
but also list the date value for that row; for example:
2006 Jul 17
11
ZFS bechmarks w/8 disk raid - Quirky results, any thoughts?
Hi All,
I''ve just built an 8 disk zfs storage box, and I''m in the testing phase before I put it into production. I''ve run into some unusual results, and I was hoping the community could offer some suggestions. I''ve bascially made the switch to Solaris on the promises of ZFS alone (yes I''m that excited about it!), so naturally I''m looking
2012 Nov 14
2
aggrete data from combination
Dear R users,
A have a dataframe (matrix) with two collumns (plot, and diameter (d)). I
want all diameters values for different combination of plots.
For example I want all d values for all posible combination, 100C2 (all d
values for plot 1 with all d values in the plot 2.......with all d values
from plot 1 with all d values from plot 100, ...... with all d values from
plot 99 with all d values
2009 Apr 29
0
estimate alpha beta for gamma
Hi R-users,
I'm not sure what's wrong and how do I check the error?
I have 3 sets of data
> aug_dt1
[1] 22.8 49.6 77.9 67.6 91.2 48.9 124.6 54.6 85.8 62.8 63.3 174.7 32.3 22.7 99.9 123.2 4.8 149.0 66.0
[20] 73.9 37.4 22.4 69.5 87.3 66.9 87.2 81.5 109.1 47.4 22.8 92.4 60.9 77.5 91.3 91.9 78.2 39.4 107.5
[39] 57.9 65.5 76.0 47.2 145.5 95.9 106.0
2017 Oct 26
0
Help needed with aggregate or other solution
On Thu, 26 Oct 2017, Thomas Adams wrote:
> Hi Jeff,
>
> Thank you for the suggestions -- I appreciate your help. Unfortunately, the
> result2 has two problems...
>
> (1) there are now 3 date columns (it looks like 2 cols are merged into 1
> col)
No, there are two date columns. Result2 includes the grouping value as a
row name (pulled from the names of the dta2list items
2006 Oct 30
1
help_aov
Hi,
I am trying to run an analysis of variance using R.
in my data table "x" is a continuous variable lengthof 200 and "p" is a
categorical variable also of length 200 and p is anyone of three categories
1,2 or ,3.
if I run
summary(aov(x~p,data=test))
I get
Response: x
Df Sum Sq Mean Sq F value Pr(>F)
p 1 3174.7 3174.7 42.749 5.175e-10 ***