Displaying 20 results from an estimated 20000 matches similar to: "for loop"
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 May 06
5
frequency
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 3
1 0 0.54 0.36
2 0 0.15 0
3 0 0.08
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
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
2006 Mar 18
2
extraction - subsets
Hi everybody,
let us assume i have the following matrixX and vectorY
matrixX <- runif(100)
dim(matrixX) <- c(10,10)
vectorY <- as.matrix(as.character(seq(1,10)))
if I define:
subsample<-c("2")
i can extract the rows from matriX based on the elements in vectorY which
are listed in subsample
matrixX[vectorY==subsample]
if I define subsample with more than 1 element, such
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
2004 Sep 28
3
slow loops in Monte Carlo Simulations
Hi there,
I am running Monte Carlo Simulations in R using ordinary "while
(condition)" loops. Since the number of iterations is something like
100.000 and within each iteration a given subsample is extended
sequentially it takes hours to run the simulation.
Does anyone know if there is either a way to avoid using loops in
Monte Carlo Simulations or how to include possible faster
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){
2016 Mar 21
2
NTFS ACL on database and vfs_acl_tdb
On Mon, Mar 21, 2016 at 01:28:44PM +0100, Matteo Maretto wrote:
> Hi,
> thanks for your question.
> We have not investigated this matter yet, but we espect to find at least a
> basic correspondence between the two. This would be enough for us.
> On the Novell documentation we've read that the object rights are
> essentially four: Browse, Create, Delete, Inheritance Control,
2003 Feb 12
1
Na/NaN error in subsampling script
R-help readers,
I''m having a problem with an R script (see below), which regularly generates the error message,
Error in start:(start + (sample.length - 1)) :
NA/NaN argument
, for which I am unsure of the cause.
In essence, the script (below) generates the start and end points for random subsamples from along a vector (in reality a transect (of a given length,
2011 Aug 11
1
Subsampling data
*Dear R community*
* *
*I have two questions on data subsample manipulation. I am starting to use R
again after a long brake and feel a bit rusty.*
* *
*I want to select a subsample of data for males and females separately*
* *
library(foreign)
Datatemp <- read.spss("H:/Skjol/Data/HL/t1and2b.sav", use.value.labels = F)
> table(Datatemp$sex)
1 2
3049 3702
2005 Jan 14
5
subsampling
hi,
I would like to subsample the array c(1:200) at random into ten subsamples
v1,v2,...,v10.
I tried with to go progressively like this:
> x<-c(1:200)
> v1<-sample(x,20)
> y<-x[-v1]
> v2<-sample(y,20)
and then I want to do:
>x<-y[-v2]
Error: subscript out of bounds.
2011 May 21
2
unbalanced anova with subsampling (Type III SS)
Hello R-users,
I am trying to obtain Type III SS for an ANOVA with subsampling. My design
is slightly unbalanced with either 3 or 4 subsamples per replicate.
The basic aov model would be:
fit <- aov(y~x+Error(subsample))
But this gives Type I SS and not Type III.
But, using the drop() option:
drop1(fit, test="F")
I get an error message:
"Error in