Displaying 20 results from an estimated 7000 matches similar to: "surprising dates"
2012 Aug 03
1
How can I read time series data to create zoo objects if I have two title lines?
Hello,
This is a standard example in which I read the time series data from a
csv file and create a zoo object:
x0 <- read.csv(file="CPI.csv", header=TRUE)
time_0<-as.yearmon("1981-01")+(0:371)/12
x0zoo<-zoo(x0, time_0)
The data look like this:
TIME CPI CPI_food CPI_Clothes CPI_House CPI_Rent 198101 62.1 55.34
103.45 65.24 61.43 198102 63.16 56.95
2011 Dec 07
2
[LLVMdev] Executable file size comparison
I compiled a program and standard library using clang/LLVM and found the
results interesting:
text data bss dec hex filename
141312 4076 16668 162056 27908 bzip2.arm
131764 4076 16668 152508 253bc bzip2.armv7
134748 4048 16624 155420 25f1c bzip2.i386
259112 4028 16732 279872 44540 bzip2.microblaze
168044 4040 16816 188900 2e1e4
2007 Sep 27
1
ifelse and dates do not work together: What workaround?
I encountered the above problem. I went to the help files and
discovered the reason why. My insight as to why it was happening did
not immediately provide me with a solution by which I could accomplish
what I needed to do. I turned to the help archive. I encountered a
thread on which somebody pointed this problem out and was mildly
castigated for not having looked at the help file. Alas no
2011 Dec 08
2
[LLVMdev] Executable file size comparison
On Thursday, December 08, 2011 02:46:39 AM Csaba Raduly wrote:
> On Wed, Dec 7, 2011 at 9:43 PM, Richard Pennington wrote:
> > I compiled a program and standard library using clang/LLVM and found the
> > results interesting:
> >
> > text data bss dec hex filename
> > 141312 4076 16668 162056 27908 bzip2.arm
> > 131764 4076
2011 Dec 08
0
[LLVMdev] Executable file size comparison
On Wed, Dec 7, 2011 at 9:43 PM, Richard Pennington wrote:
> I compiled a program and standard library using clang/LLVM and found the
> results interesting:
>
> text data bss dec hex filename
> 141312 4076 16668 162056 27908 bzip2.arm
> 131764 4076 16668 152508 253bc bzip2.armv7
> 134748 4048 16624 155420 25f1c bzip2.i386
>
2011 Dec 09
0
[LLVMdev] Executable file size comparison
On Thu, Dec 8, 2011 at 11:46 PM, Richard Pennington wrote:
> On Thursday, December 08, 2011 02:46:39 AM Csaba Raduly wrote:
>> On Wed, Dec 7, 2011 at 9:43 PM, Richard Pennington wrote:
>> > I compiled a program and standard library using clang/LLVM and found the
>> > results interesting:
>> >
>> > text data bss dec hex filename
2008 Nov 26
0
ts subscripting problem
hi,
i am having trouble getting a particular time series to plot. this is what i
have:
> class(irradiance)
[1] "ts"
> irradiance[1:30]
197811 197812 197901 197902 197903 197904 197905 197906
1366.679 1366.729 1367.476 1367.739 1368.339 1367.883 1367.916 1367.055
197907 197908 197909 197910 197911 197912 198001 198002
1367.484 1366.887 1366.935
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,
2008 Jun 12
4
[LLVMdev] Possible miscompilation?
Gordon Henriksen wrote:
> On 2008-06-11, at 13:16, Gary Benson wrote:
> > Duncan Sands wrote:
> > > Can you please attach IR which can be compiled to an executable
> > > (and shows the problem).
> >
> > I've been generating functions using a builder and then compiling
> > them with ExecutionEngine::getPointerToFunction(). Is there some
> >
2005 Aug 13
1
How to make a lagged variable in panel data?
Suppose we observe N individuals, for each of which we have a
time-series. How do we correctly create a lagged value of the
time-series variable?
As an example, suppose I create:
A <- data.frame(year=rep(c(1980:1984),3),
person= factor(sort(rep(1:3,5))),
wage=c(rnorm(15)))
> A
year person wage
1 1980 1 0.17923212
2 1981
2008 Jun 06
2
write.table() error
Hi,
I got following error in write.table() :
> write.table(dataa, file="c:/data1.csv", row.names=F, col.names=T, sep=",")
Error in file(file, ifelse(append, "a", "w")) :
cannot open the connection
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
cannot open file 'c:/data1.csv': Permission denied
2005 Mar 12
1
Database reorganization
Hi people,
I need reorganization several databases. I would like to know if that is
possible in R. My problem is like that:
original data base:
Age x1980 x1981
1 5 8
3 7 9
5 9 15
7 11 20
future data base
year age x
1980 1 5
1980 3 7
1980 5 9
1980 7 11
1981 1 8
1981 3 9
1981 5
2003 Sep 30
1
Generation of labels for 2 factors
Hello,
I have a data set with 10 countries, 10 sectors of public policy and 15 years
like
country sector year
a aa 1980
a aa 1981
...
a bb 1980
a bb 1981
...
b aa 1980
b aa 1981
...
b bb 1980
b bb 1981
....
with 1500 observations.
My cases are the couple country/sector. So, I want to have 100 cases over 15
years. (both country and sector are factors)
I want to assign to each case a label
2016 Apr 14
4
Bug in by() function which works for some FUN argument and does not work for others
Dear Sirs,
I am Professor at Indira Gandhi Krishi Vishwavidyalaya, Raipur,
Chhattisgarh, India.
While taking classes, I found the *by() *function producing following error
when I use FUN=mean or median and some other functions, however,
FUN=summary works.
Given below is the output of the example I used on a built-in dataset
"mtcars", along with error message reproduced herewith:
>
2016 Apr 14
0
Bug in by() function which works for some FUN argument and does not work for others
I think you are not using the best function for what your intentions are.
Try:
> by(data=mtcars, INDICES=list(as.factor(mtcars$am)), FUN=colMeans)
: 0
mpg cyl disp hp drat wt
qsec vs
17.1473684 6.9473684 290.3789474 160.2631579 3.2863158 3.7688947
18.1831579 0.3684211
am gear carb
0.0000000
2009 Aug 30
2
error with summary(vector)??
Hello,
I get
> summary(E)
level nodes ave_nodes time
Min. : 1 Min. : 1.00 Min. : 10.71 Min. : 0.0000
1st Qu.: 237414 1st Qu.: 2.00 1st Qu.: 19.70 1st Qu.: 0.0100
Median : 749229 Median : 3.00 Median : 27.01 Median : 0.0100
Mean : 767902 Mean : 49.85 Mean : 98.89 Mean : 0.2296
3rd
2004 Mar 11
3
widen the screen place
I have this problem: my screen seems not wide enough in R. My true
computer monitor is very wide, so I wish that I can line up the text
when I stretch it wide. i.e.:
This is typical R returns:
> summary(a)
V1 V2 V3 V4
F:625 Min. :20020103 EMC : 34 Min. : 9300300
L:944 1st Qu.:20020530 BRW : 27 1st Qu.: 9323865
2016 Apr 15
4
Bug in by() function which works for some FUN argument and does not work for others
Dear All,
Thanks for your help. However, I would like to draw your attention to the
following:
Actually, I was replicating the Example 2.3, using the dataset
"brainsize.txt" given in Section 2.3.3 ("Summarize by group") at page 55,
of a famous book "R by Example" written by "Jim Albert and Maria Rizzo"
published in Springers (2012) in a Use R! Series. The
2006 Feb 21
1
feature not available
Hi
I am working with this data:
my data summary is:
> summary(spi)
open high low close volume
Min. :4315 Min. :4365 Min. :4301 Min. :4352 Min. :
0
1st Qu.:4480 1st Qu.:4497 1st Qu.:4458 1st Qu.:4475 1st
Qu.:11135
Median :4609 Median :4631 Median :4594 Median :4614 Median
:14439
Mean :4620
2009 Mar 14
3
plotting question
Greetings all,
I have two questions. I have a data set that is arranged in the example
below. I wish to obtain a plot of the performance of each ID over Year
on v1. It's not clear how I set this up?
ID Year V1
1 1980 1
1 1981 2
1 1982 6
1 1983 4
2 1980 5
2 1981 5
2 1982 5
2 1983 6
Also,I would like to transpose the data to have the