search for: mydat3

Displaying 4 results from an estimated 4 matches for "mydat3".

Did you mean: mydata
2009 Aug 04
2
Caculate first difference from a dataframe; write a simulation
...----------- mydat<-read.table(textConnection("Level spread change State 4.57 1.6 BlF NA 4.45 2.04 BrS NA 3.07 2.49 BlS NA 3.26 -0.26 BlF NA 2.80 0.22 BrF NA 3.22 2.5 BrS NA 4.2 -0.34 BlF NA 3.80 0.35 BrS NA 4.28 1.78 BrF NA 5.4 -0.34 BrF NA 4.89 0.24 BlF NA"), header=TRUE,as.is=TRUE) mydat3<-data.frame(mydat) q<-quantile(mydat3[[1]],c(0,0.25,0.75,1)) z.level<-cut(mydat3[[1]],q,include.lowest=T) summary(z.level) q<-quantile(mydat3[[2]],c(0,0.25,0.75,1)) z.shape<-cut(mydat3[[2]],q,include.lowest=T) summary(z.shape) #to identify States in mydat3 attach(mydat3) state1&lt...
2009 Aug 05
1
writing a simulation
...----------- mydat<-read.table(textConnection("Level spread change State 4.57 1.6 BlF NA 4.45 2.04 BrS NA 3.07 2.49 BlS NA 3.26 -0.26 BlF NA 2.80 0.22 BrF NA 3.22 2.5 BrS NA 4.2 -0.34 BlF NA 3.80 0.35 BrS NA 4.28 1.78 BrF NA 5.4 -0.34 BrF NA 4.89 0.24 BlF NA"), header=TRUE,as.is=TRUE) mydat3<-data.frame(mydat) q<-quantile(mydat3[[1]],c(0,0.25,0.75,1)) z.level<-cut(mydat3[[1]],q,include.lowest=T) summary(z.level) q<-quantile(mydat3[[2]],c(0,0.25,0.75,1)) z.shape<-cut(mydat3[[2]],q,include.lowest=T) summary(z.shape) table(z.shape,z.level) mydat3$State<-as.numeric(in...
2013 Dec 08
2
How to evaluate sequence of strings like this
Hello Dear R community,  This is my problem.  I have a data set (dataframe) called "mydat". It consist of 3 numerical variable.  They are Centrecode, FSUSN and Round. I want to create unique ID by combining these 3 variables. Follwing commands gives me what I need. mydat1 <- paste(mydat$Centrecode, mydat$FSUSN,mydat$Round,sep="") newds <- data.frame(mydat1)    For a
2012 Jul 13
3
Column create and Update using function
Hi, here i have a Max and Min values Min <-3 Max <-6 and also a matrix like this, ABC XYZ PQR ------ ------- ------- 2 4 3 5 4 8 7 1 3 In this i need to check each particular column values are between Max and Min value. If the coulmn value not coming between Max and