Displaying 20 results from an estimated 1087 matches for "1994".
Did you mean:
1992
2013 Jan 12
1
bind tables
Hi Matteo,
You could do this:
dat1<-read.table(text="
year? h? len fre
1994? 5 10.5? 2
1994? 5 14.0? 2
1994? 5 11.5? 1
1994? 9 13.0? 3
1994? 9 11.5? 1
1994? 9 13.5? 5
",sep="",header=TRUE)
res<-do.call(rbind,lapply(split(dat1,dat1$fre),function(x) x[rep(row.names(x),x$fre),1:3]))
row.names(res)<-1:nrow(res)
?res
#?? year h? len
#1? 1994 5 11.5
#2? 19...
2004 Jul 23
2
retrieve rows from frame assuming criterion
Hi all,
I have a data frame in which one column(PUNTAR) is of character type.
What I want is to retrieve is the frame but only with those rows matching elements of PUNTAR with a list characters (e.g c("IX49","IX48") )
Year TUR STODNR PUNTAR
1994 9412 94020061 IX49
1994 9412 94020062 IX48
1994 9412 94020063 X32
1994 9412 94020065 X23
1994 9412 94020066 X27
1994 9412 94020067 XI19
1994 9412 94020068 XI16
1994 9412 94020069 XI14
1994 9412 94020070 XI8
1994 9412 94020071 X25
1994 9412 940...
2009 Sep 11
4
Sorting
...uot;jul" "1993"
[19,] "jun" "1993"
[20,] "mar" "1993"
[21,] "may" "1993"
[22,] "nov" "1993"
[23,] "oct" "1993"
[24,] "sep" "1993"
[25,] "apr" "1994"
[26,] "aug" "1994"
[27,] "dec" "1994"
[28,] "feb" "1994"
[29,] "jan" "1994"
[30,] "jul" "1994"
Now I want to sort the elements like below, and want to get the index
numbers of "date2...
2008 Aug 27
3
Calculating total observations based on combinations of variable values
...solution to my problem. I've searched the help guides and the archives and have not been able to find a solution that works.
I have a data frame with thousands of observations that looks something like this:
YEAR MONTH DAY COUNTRY REGION PROVINCE CITY
1994 1 22 Sri Lanka South Asia Northern (Province) Pungudutivu
1994 1 25 Sri Lanka South Asia Central (Province) Kandy
1994 2 26 Sri Lanka South Asia Central (Province) Kandy
1994 2 28 Sri Lanka South Asia Easte...
2013 Jun 15
2
quick Help needed
Hi,
i am new to this forum and not sure how it works,
I am trying to do deskriptive descripe my data in terms of gender:
head(scltotal)
pbnr dat dep dys sop ago mis age female messpunkt2
messpunkt1 tage eintrittsjahr
1 10023 1994-02-21 0.75 1.00 0.50 0.50 0.75 35 1 8817
8817 0 1994
2 10023 1994-05-25 0.75 1.00 0.50 0.50 0.75 35 1 8910
8817 93 1994
3 10028 1994-02-01 2.00 1.75 3.00 0.50 1.50 42 1 8797
8797 0 1994
4 10028 1999-01-15 1.25 0.75 2.25 0.50...
2001 Apr 12
1
smbfs not showing all files
...3496\CONTROLS\> ls
received 109 entries (eos=0)
received 108 entries (eos=1)
. D 0 Fri Jan 14 14:47:20 2000
.. D 0 Fri Jan 14 14:47:20 2000
85564001.DWG A 77049 Fri Apr 15 13:30:48 1994
85564002.DWG A 59893 Thu Oct 13 07:14:54 1994
85564003.DWG A 257189 Fri Mar 4 16:52:14 1994
<removed 85564004.dwg through 85564212.dwg> [snip]
85564213.DWG A 150626 Tue Oct 11 13:32:16 1994
8556421...
2006 Nov 23
1
how to loop this?
...uot;1993-11-15", "1993-11-18", "1993-11-21", "1993-11-24", "1993-11-30",
"1993-12-03", "1993-12-06", "1993-12-08", "1993-12-12", "1993-12-15",
"1993-12-19", "1993-12-24", "1994-01-03", "1994-01-08", "1994-01-11",
"1994-01-15", "1994-01-23", "1994-01-27", "1994-01-30", "1994-02-06",
"1994-02-13", "1994-02-16", "1994-02-21", "1994-02-25", "1994-03-...
2003 Jun 21
2
rsync 2.5.6 for NCR MP-RAS
...: syntax or usage error (code 1) at main.c(994)
# ./rsync --help
Segmentation Fault - core dumped
Here is log of compilation.
Script started on Sat Jun 21 05:56:15 2003
# make
cc -I. -I. -g -DHAVE_CONFIG_H -I./popt -c rsync.c -o rsync.o
NCR High Performance C Compiler R3.0c
(c) Copyright 1994-97, NCR Corporation
(c) Copyright 1987-97, MetaWare Incorporated
cc -I. -I. -g -DHAVE_CONFIG_H -I./popt -c generator.c -o
generator.o
NCR High Performance C Compiler R3.0c
(c) Copyright 1994-97, NCR Corporation
(c) Copyright 1987-97, MetaWare Incorporated
cc -I. -I. -g -DHAVE_CON...
2009 Apr 15
2
From daily series to monthly and viceversa
...hange rate series (from january 1st 1996 to
december 31st 2008) and I want to obtain them monthly series from it. I've
read about the 'zoo' library but I'm not getting it how to do it. These are
the data (left column day-month-year, right column the index)
31/12/1993 1,12509
03/01/1994 1,12509
04/01/1994 1,12558
05/01/1994 1,1258
06/01/1994 1,12596
07/01/1994 1,12753
10/01/1994 1,1273
11/01/1994 1,12416
12/01/1994 1,1275
Also, I have monthly CPI data and I want to interpolate using the reference
CPI formula in order to obtain the daily series. The time window is the same
(Januar...
2009 Aug 07
3
How do I plot a line followed by two forecast points?
..."n",col="red")
Warning message:
In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
# The second forecast
> fcastDates2=seq.Date(from=as.Date(fcastDates[length(fcastDates)]),length=12,by="month");
> fcastDates2
[1] "1993-12-01" "1994-01-01" "1994-02-01" "1994-03-01" "1994-04-01"
"1994-05-01"
[7] "1994-06-01" "1994-07-01" "1994-08-01" "1994-09-01" "1994-10-01"
"1994-11-01"
> fcast2<-NULL; fcast2[1:length(fcastDates2)]=...
2013 Jun 15
0
Calculate days with R
Hi,
May be this helps:
dat1<- read.table(text="
pbnr??????? dat? dep? dys? sop? ago? mis age female
1 10023 1994-02-21 0.75 1.00 0.50 0.50 0.75? 35????? 1
2 10023 1994-05-25 0.75 1.00 0.50 0.50 0.75? 35????? 1
3 10028 1994-02-01 2.00 1.75 3.00 0.50 1.50? 42????? 1
4 10028 1999-01-15 1.25 0.75 2.25 0.50 0.25? 42????? 1
5 10053 1994-03-16 2.50 0.75 1.25 0.50 1.25? 22????? 1
6 10053 1994-09-23 3.25 1.25 1.25 0.7...
2008 Jun 30
3
Trying to install an app from floppy
...e, but what?
The floppy is mounted on /fd, and the files are visible:
$ ls -la /fd
total 1412
drwxr-xr-x 1 root wheel 7168 Dec 31 1979 .
drwxr-xr-x 24 root wheel 512 Jun 8 20:52 ..
-rwxr-xr-x 1 root wheel 9479 Sep 30 1993 _mssetup.ex_
-rwxr-xr-x 1 root wheel 384981 Aug 10 1994 clipart.vs_
-rwxr-xr-x 1 root wheel 45170 Aug 10 1994 csetup.ex_
-rwxr-xr-x 1 root wheel 203172 Aug 10 1994 flags.vs_
-rwxr-xr-x 1 root wheel 174038 Aug 10 1994 map.vs_
-rwxr-xr-x 1 root wheel 37712 Sep 7 1993 mscomstf.dl_
-rwxr-xr-x 1 root wheel 68004 Aug 10 1994 mscui...
2006 Nov 22
3
dataframe manipulation
...uot;, "1993-11-15", "1993-11-18", "1993-11-21", "1993-11-24",
"1993-11-30", "1993-12-03", "1993-12-06", "1993-12-08", "1993-12-12",
"1993-12-15", "1993-12-19", "1993-12-24", "1994-01-03", "1994-01-08",
"1994-01-11", "1994-01-15", "1994-01-23", "1994-01-27", "1994-01-30",
"1994-02-06", "1994-02-13", "1994-02-16", "1994-02-21", "1994-02-25",
"1994-03-03"...
2017 Jun 07
4
Determining which.max() within groups
...1991 5.295250
1911-04-06 1991 6.569508
1911-04-07 1991 5.861587
1911-04-08 1991 5.153666
1911-04-09 1992 4.445745
1911-04-10 1992 3.737824
1911-04-11 1992 3.001586
1911-04-12 1992 3.001586
1911-04-13 1993 2.350298
1911-04-14 1993 2.661784
1911-04-16 1993 3.001586
1911-04-17 1993 2.661784
1911-04-19 1994 2.661784
1911-04-28 1994 3.369705
1911-04-29 1994 3.001586
1911-05-20 1994 2.661784"),header=TRUE)
aggregate(Q ~ wyr, data = Daily, which.max)
# gives:
# wyr Q
# 1 1990 4
# 2 1991 2
# 3 1992 1
# 4 1993 3
# 5 1994 2
I can 'see' that it is returning the which.max() relative to each...
2004 Jul 23
0
retrieve rows from frame assuming criterion [corrected]
...; character type.
> > > What I want is to retrieve is the frame but only with those
> > > rows matching elements of PUNTAR with a list characters (e.g
> > > c("IX49","IX48") )
> > >
> > > Year TUR STODNR PUNTAR
> > > 1994 9412 94020061 IX49
> > > 1994 9412 94020062 IX48
> > > 1994 9412 94020063 X32
> > > 1994 9412 94020065 X23
> > > 1994 9412 94020066 X27
> > > 1994 9412 94020067 XI19
> > > 1994 9412 94020068 XI16
> > &...
2004 Jul 23
1
R: retrieve rows from frame assuming criterion [corrected]
...one column(PUNTAR) is of
> character type.
> > What I want is to retrieve is the frame but only with those
> > rows matching elements of PUNTAR with a list characters (e.g
> > c("IX49","IX48") )
> >
> > Year TUR STODNR PUNTAR
> > 1994 9412 94020061 IX49
> > 1994 9412 94020062 IX48
> > 1994 9412 94020063 X32
> > 1994 9412 94020065 X23
> > 1994 9412 94020066 X27
> > 1994 9412 94020067 XI19
> > 1994 9412 94020068 XI16
> > 1994 9412 94020069 XI14
&g...
2007 Jun 13
2
Formatted Data File Question for Clustering -Quickie Project
...le for the script below?
B) I would like to use squared Euclidean distance, can hclust support
this?
Thanks,
Neil Gottlieb
Here is sub-set example of my data set, return series to cluster: 13
cases by 36 observations):
Month Convertible Arbitrage Dedicated Short Bias Emerging
Markets
1/31/1994 0.004 -0.016 0.105
2/28/1994 0.002 0.020 -0.011
3/31/1994 -0.010 0.072 -0.046
4/30/1994 -0.025 0.013 -0.084
5/31/1994 -0.010 0.023 -0.007
6/30/1994 0.002 0.064 0.005
7/31/1994 0.001 -0.012 0.058
8/31/1994 0.000 -0.057 0.164
9/30/1994 -0.012 0.016 0.052
10/31/1994 -0.014 -0.004 -0.035
11/3...
2011 Oct 24
2
Syntax Help for xyplot()
...t;,"Cl","Cond",..: 6 7 3 6 3 3 3 3 3 3
$ quant : num 194 530 826 36 848 ...
and a summary of it shows:
summary(burns.tds.anal)
site sampdate param quant
BC-3 :460 Min. :1992-03-27 Ca : 65 Min. : 1.00
BC-2 :107 1st Qu.:1994-09-21 Cl :148 1st Qu.: 14.03
BC-1 : 62 Median :1996-05-21 Cond: 94 Median : 64.40
BC-4 : 38 Mean :1998-11-19 Mg : 65 Mean : 189.47
BC-1.5 : 28 3rd Qu.:2002-10-31 Na : 34 3rd Qu.: 285.75
BC-0.5 : 12 Max. :2011-05-18 SO4 :155 Max. :2058.00
(Other...
2017 Jun 07
0
Determining which.max() within groups
cumsum() seems to be what you need.
This can probably be done more elegantly, but ...
out <- aggregate(Q ~ wyr, data = Daily, which.max)
tbl <- table(Daily$wyr)
out$Q <- out$Q + cumsum(c(0,tbl[-length(tbl)]))
out
## yields
wyr Q
1 1990 4
2 1991 6
3 1992 9
4 1993 15
5 1994 18
I leave the matter of Julian dates to you or others.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Tue, Jun 6, 2017 a...
2009 Apr 13
2
weighted mean and by() with two index
...My code is as follows:
R> tmp <- by(re$meta.sales.lkm[, c("pc", "sales")],
re$meta.sales.lkm[, c("size", "yr")], function(x)
weighted.mean(x[,1], x[,2]))
The result is as follows:
R> tmp
size: micro
yr: 1994
[1] 1.090
------------------------------------------------------------
size: small
yr: 1994
[1] 1.135
------------------------------------------------------------
size: medium
yr: 1994
[1] 1.113
------------------------------------------------------------
size: large
yr: 1994
[1] 1.105
------------...