Displaying 20 results from an estimated 3000 matches similar to: "frequency"
2010 Mar 27
7
large dataset
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!!!
2010 Apr 26
5
data frame
Dear list,
I have a big data frame which looks like this:
variable YEAR VAR
EC01 2006 100
EC01 2007 200
EC02 2006 500
EC02 2007 450
PROD
2010 Jun 18
3
inverse function of melt
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 6 32
1997 6 10 15
I transformed my data by using the melt function and my data was reshaped in the following format:
(Table2)
YEAR variable
2010 May 12
8
function
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,0.25)-3*IQR(x)
outer_fencesh=quantile(x,0.75)+3*IQR(x)})
where bb is a dataframe
2010 Jul 09
2
split with list
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 RAGSOCB ANNO VAR1 VAR2.........
9853312 astra 2005 6 45
9853312 astra 2006 78 45
2010 May 05
3
concatenate values of two columns
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 3
5 4
6 4
what i would like to
2004 Feb 29
7
Proportions again
Hello.
I asked before and it was great, cause as a beginner I learned a lot. But, if I have this in R (1 and 2 are codes for sex):
> sex<-c(1,2,2,1,1,2,2,2)
> sex
[1] 1 2 2 1 1 2 2 2
I´d like to obtain the proportion according to sex.So I type:
> prop.table(sex)
[1] 0.07692308 0.15384615 0.15384615 0.07692308 0.07692308 0.15384615 0.15384615
[8] 0.15384615
The result is OK, but I
2010 May 07
3
for loop
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,subsample$vD31NADD)))
d=d+1}
I know that this won't work properly:
2010 Sep 21
1
NA problem
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, so instead of having NA I have "NA". I try to convert "NA" in
2010 Jun 17
1
RKWARD
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 deleted]]
2010 Jun 03
1
cumsum function with data frame
Dear list,
I have a problem with the cumsum function.
I have a data frame like the following one
variable Year value
EC01 2005 5
EC01 2006 10
AAO1 2005 2
AAO1 2006 4
what I would like to obtain is
variable Year value cumsum
EC01 2005 5 5
EC01
2010 Jun 14
2
recursive function
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:
variable year DELTA
EC01 2006 /
EC01 2007 10
EC01 2008 5
EC01 2009 9
And then I have at time
2010 Jun 17
1
big big problem
Dear list,
I'll try to be more clear in explaining my problem. I have a data frame like this called X:
CLUSTER YEAR variable value1 value2
M1 2005 EC01 NA NA
M1 2006 EC01 2 5
M1 2007
2010 Apr 01
1
how to construct a time series
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)
...
...
...
from PROD(t-2)...it will get the same expression; where PROD(t,T) is the value
of the
2010 Apr 20
1
local and global variables
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,]
bilanci_2007 <--bilanci1[ANNO==2007,]
LOOP:
v=list(2005,2006,2007)
for (a in v){
2010 Jul 22
1
pagebreak in xtable and columns'width
Dear list,
I'm using the Sweave function in order to get some report.
Here one chunk:
<<echo=F,results=tex>>=
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"))
2010 Sep 17
1
ifelse statement
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
(check1==1 & check2==1) is respected, check has to have 1 as value,
2012 Feb 09
1
width and alignment of Latex table columns
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.
2010 Jun 09
2
OOP and passing by value
Greetings,
I love the R system and am sincerely grateful for the great effort the
product and contributors
are delivering.
My question is as follows:
I am trying to use S4 style classes but cannot write functions that modify
an object
because paramter passing is by value.
For example I want to do this:
setGeneric("setData", function(this,fcn,k){ standardGeneric("setData")
2011 Jun 24
1
try to generate graph for each element of my list
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(x2, ANNO+DICHIARANTE~PARTNER)
x2<-