Re: [R] finding big matrix size and SVD

2010-09-27 Thread Natasha Asar
I have 500,00 rows in my matrix and i was wondering whether there is any way to get its SVD without breaking it to parts because if R can only read about 1000 columns then to have a rectangular matrix (diagonal i think they are called) I will need to have only 1000 rows I want to know how i can

[R] finding big matrix size and SVD

2010-09-26 Thread Natasha Asar
Dear R helpers I have a big data sheet (CSV) which I use “read.csv” to read it When im trying to get the Dim() it says 38 column which is not correct it should be something about 400. I am wondering whether there is any way I can read it right… I have used ncol() and it’s the same an

Re: [R] reshape matrix entities to columns

2010-09-16 Thread Natasha Asar
2:24:19 Subject: Re: [R] reshape matrix entities to columns On Sep 13, 2010, at 8:51 PM, Natasha Asar wrote: I am trying this as you mentioned and getting an error which i cant fix >do you know where is the problem? > > >> df2[is.na(df2)] <- 0 >> df2 > X age

Re: [R] reshape matrix entities to columns

2010-09-13 Thread Natasha Asar
I am trying this as you mentioned and getting an error which i cant fix do you know where is the problem? > df2[is.na(df2)] <- 0 > df2 X age no. age.1 no..1 age.2 no..2 age.3 no..3 age.4 no..4 1 center1 3 9 6 4 9 110 1 0 0 2 center2 5 3 9

Re: [R] reshape matrix entities to columns

2010-09-13 Thread Natasha Asar
s into a list, as follows: >> >> df2 <- reshape(df, idvar = 'center', varying = >> list(c(paste('age', 1:5, sep = '')), c(paste('n', 1:5, sep = ''))), >> v.names = c('age', 'n'), times = 1:5, direction

[R] replacing matrix column entities as columns name

2010-09-12 Thread Natasha Asar
I am sending this again as they told me that the data was unreadable, so really hope that this will work...so sorry all note: matrix contains a lot of empty entities Greeting R helpers I am not familiar with R but I have to use it to analyze data set that I have (30,000 20,000) I want to change

Re: [R] reshape matrix entities to columns

2010-09-12 Thread Natasha Asar
I changed it so i hope it will look better now the matrix is like this: AgeNo. Age No. AgeNo. Center1 52 8 7 Center210 720 9 4 10 column name = sequence of age-no. But what I want the data to loo

[R] reshape matrix entities to columns

2010-09-12 Thread Natasha Asar
Greeting R helpers J I am not familiar with R but I have to use it to analyze data set that I have (30,000 20,000) I want to change the structure of the dataset and I am wondering how that might be possible in R A main data looks like this: some entities are empty AgeNo. Age