Dear all,
I'm using xtable package in order to produce Latex table. There is a way to
specify not only the alignment but also the width of table colums??
Thanks for your attention.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listin
Dear all,
I would like to know how to estimate in R a restricted model.
The model would be:
y=beta*X1+(1-beta)*X2
so the sum of coefficients must be one. I wonder if there is an option in the
lm function that allows to specify that restriction or any other solutions to
get the expected results
Dear all,
I'm having problems with the tick of my graph. I'mpcombining lines and
barplot.
For my I'm using the function axis combined with the function pretty to have
more efficient tick, but all my tick (for example, 300 as my max tick and -100
as my min tick) are not printed on my graph.
So I
Hi!I'm trying to plot the italian map with provincial administration but I
don't find the right database and packages to do so.Does anyone help me and
tell me how to do???Thanks for your attention
[[alternative HTML version deleted]]
__
R-help
Dear all,
I have the following problem. I have a List of time series dataframe.I'm
trying to produce specific graph for each element of my list. The code is:
This is my list:
Lista_import<-lapply(Lista_import, function(x){
x2<-subset(x, select=c("ANNO","DICHIARANTE","PARTNER", "quota"))
x2<-cast(x
Dear R list
I have a problem with NA, which should be a string, but R seems that it
doesn't recognize it. What I do is first give the format command to my data
frame:
format.data.frame(mydata,big.mark=" ")
so I give a blank as thousand separator. All my records in my data frame
become strings
Dear list,
I have a question I'm trying to use the following command in R, but it gives
me an error message.The command is:
data<-ddply(data,c("year","name"), transform, check1=ifelse(check1==1 &
check2==1, 1,NULL))
so in my data frame I already have the check1 variable, if the conditions
(che
Hi everyone,
I have a question concerning the unique function. I'm using it with two
different data frame,which are similar in structure, but as in one case unique
works properly in the other doesn't work and I don't understand why.
Someone knows why sometimes unique doesn't do things properly??
Dear list,
I'm using the Sweave function in order to get some report.
Here one chunk:
<>=
report<-lapply(repor, function(x) {
(print(xtable(data.frame(x[1:2,]), align="|l|rrr|"),floating=FALSE,tabular.
environment="longtable",include.colnames=FALSE,size="\\small"))
(print(xtable(data.frame(x[3:nro
Dear list, I'm trying to run the following for loop:
I have two list, the first one is
$'5684'
CFISCALE"5684"
RAGSOCB"Brembo"
$'4532'
CFISCALE"4532"
RAGSOCB"Stella"
which is this one in terms of dput:
dput(kk)
structure(list(`5684` = structure(c("5684",
Dear list,
I would like to know if there is a package in R which is able to set the
structure of the element of a list or dataframe in order to use xtable's
options without problems. I will do an example to be more clear:
if I have a list like this with the following element:
$ind1
Dear list,
someone knows why the print.xtable doesnt print row.names? I dident do
anything with the options.may depends on the size of my table???
This is my code:
\documentclass[a4paper]{article}
\title{SCHEMA DI BILANCIO PER SINGOLE AZIENDE}
\begin{document}
\maketitle
\hline
<>=
library(xt
Dear List I would like to ask you something concenting a better print of the R
output:
I have a bit data frame which has the following structure:
CFISCALE RAGSOCBANNO VAR1VAR2.
9853312 astra 2005 6
Dear list,
I'm trying to generate a latex Document in which there are a lot of tables. I'm
using the Sweave function in the package utils, but I'm having a lot of
problems with the format. This is my code:
\documentclass[a4paper]{amsbook}
\title{Schema di bilancio}
\begin{document}
\maketitle
<>
Dear list,
I have a question about the interaction between R code and Latex language
trough the Sweave function in the package "utils".
What I'm trying to do is to write a report. Contrary to the examples shown in
the Sweave Manual in which table already constructed by R are "exported" on
Lat
Dear list,
I'm looking for an inverse function of melt(which is in package
reshape).Namely, I had a data frame like this
(Table1)
YEAR VAR1 VAR2 VAR3
1995 7 3 45
1996 5 632
1997 6 10 15
I transformed my data by using th
Dear list,
I'll try to be more clear in explaining my problem. I have a data frame like
this called X:
CLUSTERYEAR variable value1
value2
M1 2005 EC01 NA NA
M1
Dear list,
I have a question. I have the RKward configuration. I don't know what happened
but now when I open R I have in my workspace data frames with which I used in
the past sessions.How can I set RKward in order to open a new workspace?
Thanks a lot
[[alternative HTML version delet
Dear list,
I have the following problem. I have a data frame like this
CLUSTERYEAR variableDelta R_pivot
M1 2005 EC01 NA NA
M1 2006 EC012
Dear list,
I have the following problem. I have a data frame like this
CLUSTERYEAR variableDelta R_pivot
M1 2005 EC01 NA NA
M1 2006 EC012
Dear list,
I have the following problem. I have a data frame like this
CLUSTERYEAR variableDelta R_pivot
M1 2005 EC01 NA NA
M1 2006 EC012
Dear list I have two different data frame
the first one is like this
CLUSTER year variablevalue
m1 2006 EC01 4
m1 2007 EC01 5
m2 2006 EC01
Dear list,
I have the following problem, what i'm trying to do is to built a function
which does the following calculationg in a recursive way:
I have a data frame more or less like this:
variableyear DELTA
EC01 2006/
EC01 2007 10
Dear list,
I have a problem with the cumsum function.
I have a data frame like the following one
variableYear value
EC01 2005 5
EC01 2006 10
AAO12005 2
AAO1 2006 4
what I would like to obtain is
varia
Dear list,
I would like to ask you a question. I'm trying to build the time series'
production with the Divisia index. The final step would require to do the
following calculations:
a)PROD(2006)=PROD(2007)/[1+DELTA_PROD(2007)/100]
b)PROD(2005)=PROD(2006)/[1+DELTA_PROD(2006)/100]
c)PROD(2004)=P
Dear list,
I would like to ask you a question. I'm trying to build the time series'
production with the Divisia index. The final step would require to do the
following calculations:
a)PROD(2006)=PROD(2007)/1+[DELTA_PROD(2007)]
b)PROD(2005)=PROD(2006)+[1+DELTA_PROD(2006)]
c)PROD(2004)=PROD(2005)
Dear list,
I would like to know if is it possible to add a legend to a pie3D??
Thanks for your attention!
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-
Dear list,
I'm trying to implement the following function, but what I get is an error
message and I don't understand where is the error:
#outliers'identification:
iqr=lapply(bb,function(){
inner_fencesl=quantile(x,0.25)-1.5*IQR(x)
inner_fencesh=quantile(x,0.75)+1.5*IQR(x)
outer_fencesl=quantile(x
Dear list,
in the following loop im generating objects of type table. What I would like to
do is to put all those objects together in a list (that i called cc).I did this
but the result is not what i espect to get:
cc=list()
d=1
for (i in data) {
cc=list(cc,assign(paste("n",d,sep=""),table(i
Dear list,
in the following loop im generating objects of type table. What I would like to
do is to put all those objects together in a list (that i called cc).I did this
but the result is not what i espect to get:
cc=list()
d=1
for (i in data) {
cc=list(cc,assign(paste("n",d,sep=""),table(i,
Dear list,
Im trying to do the following operation but im not able to do it
This is my table:
1 2 3
1 0 7 4
2 0 2 0
3 0 1 3
4 0 3 4
what i would like to do is
divide each row values with the corresponding column' sum,namely:
1 2
Dear list,
I'm trying to concatenate the values of two columns but im not able to do it:
i have a dataframe with the following two columns:
X VAR1 VAR2
1 2
2 1
3 2
4
Dear list,
I have a big data frame which looks like this:
variable YEAR VAR
EC01 2006 100
EC01 2007 200
EC02 2006
Dear list,
I have a big data frame which looks like this:
variable YEAR VAR
EC01 2006 100
EC01 2007 200
EC02 2006
Dear list,
>I have a question about the selection of Variables in dataframes.
>I have a dataframes like this:
>
>CFISCAFIRMSYEAR VARVALUE
>20345 nike2005EC01 34
>20345 nike
Dear list,
I have a question about the selection of Variables in dataframes.
I have a dataframes like this:
CFISCA FIRMS
YEARVAR VALUE
20345nike
2005
Dear list
I have a question, I would like to get the following results but I dont know
how to do it:
I have a dataframe like this:
NC8PROD X 1X2
1423 P1342 10
1564
Hi all,
I have a question about global and local variables.First of all, a variable
defined in a for loop is it a local or global variable??
Second, I'm trying to build a loop in the following way:
I have these 3 data frames
bilanci_2005<-bilanci1[ANNO==2005,]
bilanci_2006<-bilanci1[ANNO==2006,]
b
I have a problem with the merge function.
I have to merge two big dataframes which look like the following example.The
problems is that I get duplicated rows.
CODPROD N1 N3 N4
23 3 55 4
24 5
Hi all,
I'm trying to load a csv file in which all the variables must be of type
number.The object is a dataframe.When i load the file what i get is a dataframe
in wich the variables are of type factor.How can I get variables of type
number???
Thanks all
I have a problem with the merge command.
I have to merge two dataframe that looks like the following example:
CODPROD N1 N3 N4
23 3 55 4
24 5 6736
25
I have a problem with the merge function:
I need to merge the data.frames that you will find as arrachmente...I try all
the possible combinationsbut none seems to work properly
Does anyone knows how to do it??
thanks
__
R-help@r-project.org maili
Hi,
I need to generate the time series of the production, but as I'm new to this
topic I am not able to do that. This is what the time series should be:
PROD(t)=PROD(t,T)
PROD(t-1)=PROD(t-1,T)
PROD(t-2)=PROD(t-1)*PROD(t-2,T-1)/PROD(t-1,T-1)
PROD(t-3)=PROD(t-2)*PROD(t-3,T-2)/PROD(t-2,T-2)
...
...
Hi I have a question,
as im not able to import a csv file which contains a big dataset(100.000
records) someone knows how many records R can handle without giving problems?
What im facing when i try to import the file is that R generates more than
100.000 records and is very slow...
thanks a lot!
I have some probems in merging the following datasets:
table1
Paese Continente
Italia EU
franciaEU
germania EU
stati uniti AM
canadaAM
table2
Continente
45 matches
Mail list logo