Displaying 20 results from an estimated 28 matches for "vdemart1".
2005 Oct 07
2
finding missing lines...
Take this as an example:
> a=data.frame(col1=c(1,2,3,4,5), col2=c
("my","beloved","daughter","son","wife"))
> b=data.frame(col1=c(1,2,4),
col2=c("my","beloved","son"))
> a
col1 col2
1 1 my
2
2 beloved
3 3 daughter
4 4 son
5 5 wife
> b
col1 col2
1 1 my
2
2007 May 09
5
Reading a web page in pdf format
Each day the daily balance in the following link
http://www.
snamretegas.it/italiano/business/gas/bilancio/pdf/bilancio.pdf
is
updated.
I would like to set up an R procedure to be run daily in a
server able to read the figures in a couple of lines only
("Industriale" and "Termoelettrico", towards the end of the balance)
and put the data in a table.
Is that possible? If
2007 Feb 07
2
Finding not-matching rows in tables
I have these two dataframes in which 'id' is the key field
> tabella
id nome
1 1 PIEMONTE
2 2 VALLED'AOSTA
3 3
LOMBARDIA
4 4 TRENTINO
5 5 VENETO
6 6 FRIULI
AND
> tab
id nome
1 1 PIEMONTE
2 2 VALLED'AOSTA
3 3 LOMBARDIA
4 4 TRENTINO
5 25 CAMPANIA
6 28
LAZIO
Is there any
2008 Feb 21
2
Unable to create/index a zoo irregular timeseries
In the text file pressione2008.csv I have the following
"Data","MAX","MIN","Note"
"07-01-2008 08:00:00", 135, 90, "Eccessi feste, inizio dieta"
"07-01-2008 18:00:00", 135, 85, ""
"08-01-2008 08:00:00", 125, 75, ""
which is a collection of blood pressure data at different time of the day.
I would
2005 Nov 03
1
Problem installing ROracle package under R
Context: Pentium 4 with FreeBSD 5.4 and R 2.2.0
I'm trying to install
the package ROracle under R.
To start with I installed the oracle8-
client from the ports and referred to it via the variable $HOME_ORACLE
as /usr/local/oracle8-client. Then I started R. After issuing install.
packages("ROracle") R downloaded the needed package and started to
compile it but complained:
2005 Nov 09
0
R: Re: RODBC fails to build
...sql.h, sqlext.h headers
problem and a successive problem with the SQLTables libraries.
This set
things straight and RODBC was compiled flawlessly.
I think it would be
worth your while adding this piece of information in the README file.
Ciao
Vittorio
>----Messaggio originale----
>Da: vdemart1 at tin.it
>Data: 8-nov-2005 11.45 PM
>A: <r-help at stat.math.ethz.ch>
>Ogg: Re: [R]
RODBC fails to build
>
>yes, I read it. Nevertheless I can't make head
or tail of it.
>Can anyone out there help me with a step by step
explanation?
>Ciao
>Vittorio
>
>All...
2008 Jun 09
1
Problems with strptime
Perhaps I'm missing a real, stupid point but I can't understand the
following behaviour:
> strptime("30 march 2008 02:30 AM",format="%d %B
%Y %I:%M %p")
[1] "2008-03-30 02:30:00"
> strptime("30 march 2008 00:30
AM",format="%d %B %Y %I:%M %p")
[1] NA
Why times 00:nn are not
available and how solve this?
Ciao
Vittorio
2006 Oct 27
3
R & gams
At office I have been introduced by another company to new, complex energy
forecasting models using gams as the basic software.
I have been told by the company offering the models that gams is specialised
in dealing with huge, hevy-weight linear and non-linear modelling (see an
example in http://www.gams.com/modtype/index.htm) and they say it is almost
the only option for doing it.
I would
2006 Apr 04
3
Financial functions
In what R package(-s) can I find the entire set of financial functions that
you can find in MS-Excel such as PMT, PPMT, FV and IPMT?
Ciao
Vittorio
2005 Dec 01
1
Snow & rvpm
At office, using the internal LAN at my disposal, I'm having a go at parallel
computing - to begin with - with pvm, rpvm & snow.
The two boxes are as follows
Remote machine uffbsd:
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (1994.13-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0xf24 Stepping = 4
real memory = 260046848 (248 MB)
This machine NbBSD:
CPU: Mobile Intel(R)
2007 Dec 09
1
Setting the grid of a graph of timeseries
I have the following code
####################################################################
library(zoo)
miedate <- yearmon((2006)+seq(0,23)/12)
tab <- zoo(cbind(A = c(79.47, 89.13, 84.86, 75.68, 72.82, 78.87, 93.46,
78.18, 82.46, 77.25, 80.95, 84.39, 81.7, 74.76, 65.29, 60.3,
66.59, 73.19, 92.39, 65.76, 77.45, 74.22, 101.36, 100.01), B = c(77.95,
76.73, 51.2, 51.86, 51.29, 49.45,
2007 Dec 03
1
Plotting monthly timeseries with an x-axis in "time format"
I have the following timeseries "tab"
=====================================
> str(tab)
mts [1:23, 1:2] 79.5 89.1 84.9 75.7 72.8 ...
- attr(*, "dimnames")=List of 2
..$ : NULL
..$ : chr [1:2] "Ipex...I" "Omel...E"
- attr(*, "tsp")= num [1:3] 2006 2008 12
- attr(*, "class")= chr [1:2] "mts" "ts"
> tab
2005 Sep 23
2
Strange behaviour of as.Date function
Dear All,
I'm happily extracting data of temperature from an oracle db
under R via RODBC. After manipulating the extracted data I put them
into a data.frame 'dati' which is as follows:
> dati
DATA tm.
UDINE/RIVOLTO tm.TORINO/CASELLE
1 2005-07-01
22.35 23.80
2 2005-07-02 22.70
22.85
3 2005-07-03 23.80
2005 Sep 13
3
Reading data from a serial port
I need to read data from from a medical appliance via the serial port. This
medical appliance produces streams of set data at regular intervals.
What commands, packages are available for this purpose?
Vittorio
2005 Nov 08
1
RODBC fails to build
Context:Pentium 4, FreeBSD 5.4, R 2.2.0
I updated the extra packages I
had downloaded but the upgrading of RODBC failed complaining:
checking
for unistd.h... yes
checking sql.h usability... no
checking sql.h
presence... no
checking for sql.h... no
checking sqlext.h usability...
no
checking sqlext.h presence... no
checking for sqlext.h... no
configure: error: "ODBC headers sql.h and
2005 Dec 02
0
problems with R and snow on a debian box only
(Posted also to debian-user)
In my office network I have access to a debian powerpc server and 2 freebsd
6 servers (actually one of them is my notebook).
Experienced user of the statistical software R, I have now a go at parallel
computation via (r-)pvm and snow under R to enhance the performance of a
heavy duty statistical problem involving many iteration on the calculation
of models.
I moved
2006 Apr 07
1
Aggregating an its series
I'm using a very long irregular time-series of air temperature and
relative humidity of this kind (this is an extract only)
its.format("%
Y%d%m %X)
> base
T H
20020601
12.00.00 27.1 47
20020601 15.00.00 29.1 39
20020601 18.00.00 27.4 39
20020601 21.00.00 24.0 40
20020602 0.00.00 22.0 73
20020602 3.00.00
19.2 49
20020602 6.00.00 19.5 74
20020602
2006 Jun 23
0
R: rearranging data frame rows
Have a look at merge.
Ciao
Vittorio
>----Messaggio originale----
>Da:
f.calboli at imperial.ac.uk
>Data: 23-giu-2006 18.10
>A: "r-help"<r-
help at stat.math.ethz.ch>
>Ogg: [R] rearranging data frame rows
>
>Hi
All,
>
>I have two data frames. The first contains data about a number
of individuals,
>coded in the first column with a name, in an order
2006 Jun 25
0
Fighting with GDD & lwd
I succeeded in compiling and installing the GDD package under my FreeBSD 6.1
box after eliminating
ifdef DEBUG
? ?PKG_CFLAGS+=-DJGD_DEBUG
endif
in Makevars.in
Now, with the following code
..............................................
grafico1<- function() {
plot(1:length(tabella[,1]),tabella[,2],ylim=c(Ymin,Ymax),type="h",
2007 Feb 02
0
New RODBC: a problem with sqlSave
Till yesterday I was more than satisfied by RODBC, specifically by
sqlSave which I had been happily using in a daily crontab R batch job
regularly updating a postgresql db for as long as one year. In this R-
batch I was able to save records into indexed tables *** even though
*** they already existed. in this case sqlSave simply neglected those
rows of the input table that were offending the