Displaying 20 results from an estimated 2000 matches similar to: "how use the subset?"
2011 Aug 25
1
how to compare two dataset with same sampling
hi ,
Now I have two dataset and want to compare them with same sample.
Dataset A:
year mon day obs
2010 03 12 12
2010 03 18 22
2010 04 12 62
2010 07 24 29
Dataset B:
year mon day obs
2010 03 12 15
2010 04 12 57
2010 07 24 32
2010 08 23 15
As you see,dataset A and B have several observation data but their obs data
is not
2012 Mar 08
6
how to modify the tickment of x-axis
hi
I plot a series of observation data every minutes in a day as the
attachment below
plot(wnd,type='l',lty=1,col='red',lwd=1,xlab=xxlab,ylab=yylab,ylim=YY)
In the figure, the x-axis tickment is the number of data How can I change
it
fore example 1h 2h 3h 4h and so on ?
--
TANG Jie
Email: totangjie at gmail.com
Tel: 0086-2154896104
Shanghai Typhoon Institute,China
2009 Jul 29
2
quetions about dimensions
hi ,everyone,
I have a script shown as below:
> bj2=bjerrdata$tyerr[bjyearnum[2]+1:bjyearnum[3]]
> length(bj2)
[1] 448
while
> b=bjyearnum[3]
> a=bjyearnum[2]+1
> bj1=bjerrdata$tyerr[a:b]
> length(bj1)
[1] 169
it is different with bj2 and bj1 . and the array bjyearnum is
[1] 0 279 448 633 1021 1365 1813 2237 2839 3314 3798 4157 12
why bj1 is 169 while bj2 is 448
2012 Mar 14
6
where I can find more color names or color definition?
hi everyone .
Now I want to draw several lines in one frame.And it seems needs more
colors except for blue red,black .Where can i found these color name or
define some new color ?thank you .
--
TANG Jie
Email: totangjie@gmail.com
Tel: 0086-2154896104
Shanghai Typhoon Institute,China
[[alternative HTML version deleted]]
2009 Jul 18
3
how to run the R script in background in Windows XP?
Hello ,everyone.
I am a fresh user of R. I wrote several several R script in R with the
version 2.9.1 in Windows XP. But I only can run these scrpit via R-GUI.
Can anyone tell me how to run the scripts in background without openning
R-gui.In another word, run the R-script and get the result via
some batch proceesing files or shell scripts directly?
Thanks.
.
--
TANG Jie
Email:
2012 Jul 10
2
is it possible to insert a figure into into another new figure by r script
hi R-users
Now I have a figure in emf or png or tiff format that have been drawn
by other tool and I want to insert this figure into
my new figure by R script. I wonder if is possible ?
--
TANG Jie
Email: totangjie@gmail.com
Tel: 0086-2154896104
Shanghai Typhoon Institute,China
[[alternative HTML version deleted]]
2012 Aug 01
2
how to subset the data frame by lines
I defined a data.frame by a two-dimensional array.
> aa = data.frame(rbind( 11:20, 1:10))
> aa
X1 X2 X3 X4 X5 X6 X7 X8 X9 X10
1 11 12 13 14 15 16 17 18 19 20
2 1 2 3 4 5 6 7 8 9 10
Now I want to use the data in the second line of aa which from 1 to 10 to
output.But I find that when I use the aa[[1]][1:10] and it seems be mistake.
aa[[1]][1:10]
[1] 11 1 NA NA NA
2010 May 29
1
how to run the R script in windows in background mode or script mode?
Hello,everyone .
Now I write some R scripts to calculate some variables and I run them in C
shell script command in linux..
Now my some new R scripts had to be moved in someother's computer with
windows system.
How to run these R scripts easily without installing many soft package?
--
TANG Jie
Email: totangjie@gmail.com
Tel: 0086-2154896104
Shanghai Typhoon Institute,China
2013 Jan 22
1
how to give a lengend in symbols functions
hi Rusers
I am trying to use symbos in gtools package
symbols(data1,data3,circle=data1/data3,inches=0.1,bg="lightgreen")
Now I want to give a lengend to tell the reader the meaning or magnitude of
these circle.
How can I add these information in symbols plot just like legend in plot ?
thank you .
--
TANG Jie
Email: totangjie@gmail.com
Tel: 0086-2154896104
Shanghai Typhoon
2012 Mar 07
1
how to read a file containing a series filename
hi everyone .
I have a group of files that needs to be read in .
And I put their filename into one file with the name "file.txt"
And in the file.txt,the filename are shown as below :
H20100902.TXT
H20100903.TXT
H20100904.TXT
H20100905.TXT
H20100906.TXT
H20100907.TXT
H20100908.TXT
Now I want to read these file from the file.txt by such codes:
filename <-("file.txt")
pp
2011 Nov 17
2
how to read a freetext line ?
hi everyone .
Here I have a text where there are some integer and string variables.But I
can not read them by readLines and scan
the text is :
weight ;30;130
food:2;1;12
color:white;black
the first column is the names of the variables and others are the value of
them.
the column in different line are different.
Can anyone help me ?
--
TANG Jie
Email: totangjie@gmail.com
Tel: 0086-2154896104
2009 Jul 20
5
what is meaning of the bubbles in boxplots?
Hi ,everyone ,
I draw some boxplot figure with the command "boxplot".But in the
figure,there are some bubbles at the top part of the figure.
Can anyone tell me what the correct meaning of these bubbles?and how to
remove it?
--
TANG Jie
Email: totangjie@gmail.com
Tel: 0086-2154896104
Shanghai Typhoon Institute,China
[[alternative HTML version deleted]]
2011 Sep 01
3
how to get the varifying character with two variables?
hi R user
mtdno<-paste("data",1:3,sep="")
tyno<-paste("obs",1:5,sep="")
flnm<-paste(mtdno,tyno,"_err.dat",sep="")
flnm is
[1] "data1obs1_err.dat" "data2obs2_err.dat" "data3obs3_err.dat"
[4] "data1obs4_err.dat" "data2obs5_err.dat"
but actually what i want is data from 1 to 3
2011 Oct 25
1
how can I install the latest version of r in linux?
HI R-users
I downloaded the latest version of R with the name R-latest.tar.gz from
the website
But when I tar the package and configure the package,
some error message showed that
configure: error: --with-readline=yes (default) and headers/libs are not
available
and I run make command:
error message says;
user@gateway R-2.13.2]$ make
make: *** No targets specified and no makefile found.
2009 Jul 29
1
how to initial the R script
hi everyone,
I am wondering if I can inintial all of the varibles and vectors at the
begining part of my R script to make clear all the meanning defined
in another script runned before It is just similiar with the command " close
all " in Matlab or "reinit " in grads.How can I do?
thank you.:)
--
TANG Jie
Email: totangjie@gmail.com
Tel: 0086-2154896104
Shanghai Typhoon
2013 Jan 14
1
hwo to subtract a child array from the big array?
hi R users
I have a data set with the name AA
AA<-1:100
Now I want to get a child array from AA every 10 numbers
e.g.
ab =c(10,20,30,40,50,60,70,80,100)
How could I subtract aa from AA?
thank you .
--
TANG Jie
Email: totangjie@gmail.com
Tel: 0086-2154896104
Shanghai Typhoon Institute,China
[[alternative HTML version deleted]]
2005 Mar 31
1
Contingency table: logistic regression
Hi,
I am analyzing a data set with greater than 1000 independent cases
(collected in an unrestricted manner), where each case has 3 variables
associated with it: one, a factor variable with 0/1 levels (called XX),
another factor variable with 8 levels (X) and a third response variable
with two levels (Y: 0/1). I am trying to see if X1 has an effect on the
relationship between X2 and the
2009 Nov 05
2
[LLVMdev] Strange error for libLLVMCore.a
mingw, llvm 2.6 (buid with llvm-gcc)
Example source code:
http://npcontemplation.blogspot.com/2008/06/secret-of-llvm-c-bindings.html
I change
LLVMCreateJITCompiler(&engine, provider, &error);
to
LLVMCreateJITCompiler(&engine, provider, 3, &error);
$ llvm-gcc `llvm-config --cflags` -c fac.c
$ g++ `llvm-config --libs --cflags --ldflags core analysis
executionengine jit
2013 Dec 14
2
Change factor levels
Suppose I have a dataframe 'd' defined as
L3 <- LETTERS[1:3]
d0 <- data.frame(cbind(x = 1, y = 1:10), fac = sample(L3, 10, replace
= TRUE))
(d <- d0[d0$fac %in% c('A', 'B'),])
x y fac
2 1 2 B
3 1 3 A
4 1 4 A
5 1 5 A
6 1 6 B
8 1 8 A
Even though factor 'fac' in 'd' only has 2 levels, but it seems to bear the
birthmark
2013 Jan 17
3
Colors in interaction plots
Hi,
I am trying to plot an interaction.plot with different color for each
level of a factor. It has an erratic behavior.
For example, it works for the first interaction.plot below, with the
example from the ALDA book, but not with the other plots, from the NPK
dataset:
# from http://www.ats.ucla.edu/stat/r/examples/alda/ch2.htm
tolerance <-