Displaying 4 results from an estimated 4 matches for "totemo13".
2009 Oct 03
3
How to deal with this :" object ' obs' not found.
Hi guys,
I need your help.
I'm trying to sort the data by the variable "obs".
This is how I tried to sort the data below.
The problem is, I have a variable name "obs"; this is.. a counter variable.
something like _n_ in SAS.
I do not know why it is not working.
I even tried a similar example in UCLA webpage:
http://www.ats.ucla.edu/stat/R/faq/sort.htm :it also does not
2010 Mar 13
3
Making multiple columns to a single column
Hi guys,
I have a very simple question.
I'm trying to make multiple columns to a single column.
For example,
*ttx1* is a 46*72 matrix.
so, I tried this.
*d1=ttx1[,1]
d2=ttx1[,2]
...
d72=ttx1[,72]*
now, d1, d2, ...,d72 become a 46*1 matrix.
And then.. I tried..
*dd=rbind(d1, d2, ..., d72)*
I thought *dd* should be 3312*1 matrix; but it becomes 72*46.
I really wanted to make it a single
2009 Sep 27
3
Teach me how to transpose in R
Hi guys,
I need your help!!
My goal is to make a csv file from ncdf file.
This is the code i've used :
> hyo=open.ncdf("C:/CRUTEM3.nc")
> hyo
[1] "file C:/CRUTEM3.nc has 4 dimensions:"
[1] "longitude Size: 72"
[1] "latitude Size: 36"
[1] "unspecified Size: 1"
[1] "t Size: 1916"
[1] "------------------------"
2009 Oct 02
1
How to select a subset <number of dimensions matter>
Hi guys,
I need your help.
I would like to select a subset from a dataset.
This is the dimension of the dataset.
> dim(data1)
[1] 72 36 1916
so, it's like.. there are 1916 of 72 * 36 matrix. ==> looks like 72 * (
36*1916 )
**
*1)*
And I would like to select the first 72*36 matrix. This is how I did:
> two=data1[,1:36]
Error in data1[, 1:36] : incorrect number of dimensions