Displaying 20 results from an estimated 20000 matches similar to: "counting Na/not NA by groups by column"
2010 Feb 17
2
Survival analysis
Dear all
I have a dataset examining the probability of a population surviving
(calculated from a logistic regression) of a species over a 200yr period.
The predictor variables are either continuous but non-normal (e.g.
temperature, oxygen) or categorical (e.g. channelisation), unfortunately I
also have a large amount of missing values.
Year Decline Temperature Oxygen Channelisation
1800
2013 Mar 12
5
extract values
Hello all!
I have a problem to extract values greater that for example 1820.
I try this code: x[x[,1]>1820,]->x1
Please help me!
Thank you!
The data structure is:
structure(c(2.576, 1.728, 3.434, 2.187, 1.928, 1.886, 1.2425,
1.23, 1.075, 1.1785, 1.186, 1.165, 1.732, 1.517, 1.4095, 1.074,
1.618, 1.677, 1.845, 1.594, 1.6655, 1.1605, 1.425, 1.099, 1.007,
1.1795, 1.3855, 1.4065, 1.138, 1.514,
2013 Apr 07
2
group data in classes
Hello all!
I have a problem to group my data (years) in 10 years classes. For example
for year
year decade
1598 1590-1600
1599 1590-1600
1600 1590-1600
1601 1600-1610
---
my is like this>
[1] 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611
1612
[16] 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626
1627
[31] 1628 1629 1630 1631 1632 1633
2016 Dec 05
1
A potential error in opus-1.1.3
Hi,
I downloaded the source code of opus-1.1.3.tar.gz, and statically analyzed the code by a static analysis tool. Many potential false alarms are reported. I checked manually and selected a potential error which is described as follow. Could you please check it?
In file ‘src/opus_encoder.c’, function ‘opus_encode_native’, the piece of code is:
…
Line 1802: if (frame_size == 2*st->Fs/25)
2010 Dec 02
6
Filter data
Hello,
I understand that question is probably stupid, but ...
I have data (polity IV index)
"country","year","democ","autoc","polity","polity2"
"1","Afghanistan ",1800,1,7,-6,-6
"2","Afghanistan ",1801,1,7,-6,-6
"3","Afghanistan
2013 Dec 17
0
result
Mydata is as under.
dat=" salary ex
+ 1 1856 1799
+ 2 1856 1800
+ 3 1858 1800
+ 4 1858 1801
+ 5 1862 1803
+ 6 1862 1805
+ 7 1862 1810
+ 8 1865 1805
+ 9 1865 1808
+ 10 1865 1815
+ 11 1865 1820
+ 12 1870 1810
+ 13 1870 1830
+ 14 1880 1840
+ 15 1880 1845
+ 16 1880 1851
+ 17 1880 1853
+ 18 1880 1855
+ 19 1885 1850
+ 20 1885 1852
+ 21 1885 1857
+ 22 1885 1860
+ 23
2005 Oct 26
1
(no subject)
R-Help,
I am trying to do simple plots of the characteristics of cellular
phones. I am values that fit along an axis that has many data points
around 800 and 1800. I am not interested in the "dead space' between
the two clusters of data.
I am not interested in a linear axis. I would like to "cut out" the
white space between the two pockets of data when plotting. I
2004 Mar 31
1
[LLVMdev] 134.perl
Hello,
I am trying to compile 134.perl - the spec95 benchmark using LLVM and I
am getting the following error message -
--------------------------------------------
34.perl/symbol/dolist.c:1786: warning: "struct tm" declared inside parameter
list
134.perl/symbol/dolist.c:1786: warning: its scope is only this definition or
declaration, which is probably not what you want
2010 Apr 18
2
Calculating a Maximum for a row or column with NA's
Is there a simple way to calculate the maximum for a row or column of a
matrix when there are NA,s present.
# given a matrix that has any number of NA per row
> m<-matrix(c(seq(1,9)),nrow=3)
> m
[,1] [,2] [,3]
[1,] 1 4 7
[2,] 2 5 8
[3,] 3 6 9
> m[3,1]=NA
> m[1,]=NA
> m
[,1] [,2] [,3]
[1,] NA NA NA
[2,] 2 5 8
[3,] NA 6 9
2006 May 27
4
MSWord97 installs properly but still won't launch (or save?) -- 3 more data files
Dear friends:
Forgot to include three more data files:
http://www.websher.net/tmp/user.reg
http://www.websher.net/tmp/system.reg
http://www.websher.net/tmp/userdef.reg
Thank you again.
Benjamin
I've been trying for some time to install my copy of Word97 (which I
own, having purchased it directly from Microsoft with my own license
number). I have tried the latest Wine 0.9.14. To do
2013 Feb 20
1
Samba4 Auto-start
Hello all,
I'll cut to the chase -- several weeks ago, I thought I had an upstart configuration file that would start Samba4 when the VM was turned on; but it turns out I was wrong. At the time there was nothing on the wiki about it (the links were broken).
The script I thought was working was simply:
start on runlevel [2345]
exec /usr/local/samba/sbin/samba
In any case, looking at the
2011 May 05
1
Question about error of "non-numeric argument to binary operator"
I have been trying to do a nls model and gives me the error of a nonnumeric
argument
table(file="c:/tt2.txt",header=T)
> fit.model <- nls(TT~60*(1+alpha*(v/c)^beta),data=tt2, start=list(alpha=1,
beta=3, v=1000))
Error in v/c : non-numeric argument to binary operator
> is.numeric(tt2)
[1] FALSE
> is.character(tt2)
[1] FALSE
> as.numeric(tt2)
Error: (list)
2014 Apr 14
1
Samba 4.1.6 huge security flaw
Hi all,
I've been running Samba 4.1.6 in production for 2 weeks now and it's been
great. However I noticed a huge security flaw today that I hit only once. I
access Samba4 shares over the VPN that is irrelevant since the security
access is user-based, not IP based. What happens right after the connection,
Windows tries to read the shares and some are empty, but they are not
supposed to
2007 Jan 25
4
Benchmarking
I wasted too much time today doing this, but they do show a few
interesting things:
1) mmap_disable=yes is faster than mmap_disable=no. I didn't expect
this. I'm not yet sure why this is, but possibly because then it updates
the mail index by reading the changes from dovecot.index.log, instead of
reopening and re-mmaping dovecot.index. At least that's the biggest
difference between
2010 Dec 15
3
selecting certain rows from data frame
Hi,
if I have a dataframe such that
ID Time Earn
1 1 10
1 2 50
1 3 68
2 1 40
2 2 78
2 4 88
3 1 50
3 2 60
3 3 98
4 1 33
4 2 48
4 4 58
.....
....
.....
Now if I have to select the all the rows from the data frame which does not
2005 Jan 05
5
Polycom IP500 - problems with multiple simultaneous calls
Hi All -
I've got a load of Polycom phones, and for the most part, I think
they're great, but one thing that is bugging the heck out of me (and my
users) is the "on-hold" feature. When you're on a call, and another
one comes in, it doesn't ring the second line appearance on the phone,
even though I have it registered separately, and I've tried to make my
2013 Dec 10
0
CentOS-announce Digest, Vol 106, Issue 5
Send CentOS-announce mailing list submissions to
centos-announce at centos.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-request at centos.org
You can reach the person managing the list at
centos-announce-owner at centos.org
When
2011 Sep 12
5
Hourly data with zoo
I have date data as a numeric and hourly data in 0 to 2300 hours in a dataframe.
d <- rep(20110101,24)
h <- seq(from = 0, to = 2300, by = 100)
df <- data.frame(LST_DATE = d, LST_TIME = h, data = rnorm(24, 0, 1))
S <- chron(dates. = as.character(df$LST_DATE), times. =
paste(as.character(df$LST_TIME/100), ":0:0", sep = ""),
format =
2010 Jul 30
2
Summing by index
# build a sample data frame illustrating the problem
ids<-c(rep(1234,5),rep(5436,3),rep(7864,4))
years<-c(seq(1990,1994,by=1),seq(1991,1993,by=1),seq(1990,1993,by=1))
data<-seq(14,25,by=1)
data[6]<-NA
DF<-data.frame(Id=ids,Year=years,Data=data)
DF
Id Year Data
1 1234 1990 14
2 1234 1991 15
3 1234 1992 16
4 1234 1993 17
5 1234 1994 18
6 5436 1991 NA
7
2010 Apr 25
3
Noobie question on aggregate tapply and by
I have a 43MB dataframe ( 5 variables) and I'm trying to summarize subsets
of the data.
I've RTFM ( not very clear) and looked at a variety of samples but cant seem
to figure out
how to make these functions work.
A sample of what I want to do would be this:
ids<-seq(1,50)
years<-c(rep(5,10),rep(6,10),rep(7,10),rep(8,20))