Displaying 7 results from an estimated 7 matches for "jiim".
Did you mean:
jim
2009 Jun 13
2
How to write loop
Dear all,
I want to do the following process as a loop ( to run
automatically with dimension of X, here 50). How can I do that? Your
cooments will be highly appreciable.
Alex
*# Code:*
library(lars)
library(chemometrics)
X<-matrix(rnorm(2500),ncol=50)
dim(X)
# [1] 50 50
X1<-X[,2:dim(X)[2]] # I have taken out first column
dim(X1)
#[1] 50 49
X2<-X1[2:dim(X1)[1],] #
2018 Feb 25
3
include
...> Z1 K1 K2
> Z2 NA NA
> Z3 X1 NA
> Z4 Y1 W1"),header = TRUE,stringsAsFactors=FALSE)
> preval<-data.frame(Col1=unique(unlist(mydat[,c("Col2","col3")]))[-1],
> Col2=NA,col3=NA)
> rbind(preval,mydat)
> mydat[is.na(mydat)]<-"0"
>
> Jiim
>
>
> On Sun, Feb 25, 2018 at 11:05 AM, Val <valkremk at gmail.com> wrote:
> > Sorry , I hit the send key accidentally here is my complete message.
> >
> > Thank you Jim and all, I got it.
> >
> > I have one more question on the original question
>...
2018 Feb 25
0
include
...- read.table(textConnection("Col1 Col2 col3
Z1 K1 K2
Z2 NA NA
Z3 X1 NA
Z4 Y1 W1"),header = TRUE,stringsAsFactors=FALSE)
preval<-data.frame(Col1=unique(unlist(mydat[,c("Col2","col3")]))[-1],
Col2=NA,col3=NA)
rbind(preval,mydat)
mydat[is.na(mydat)]<-"0"
Jiim
On Sun, Feb 25, 2018 at 11:05 AM, Val <valkremk at gmail.com> wrote:
> Sorry , I hit the send key accidentally here is my complete message.
>
> Thank you Jim and all, I got it.
>
> I have one more question on the original question
>
> What does this "[-1] &quo...
2018 Feb 25
0
include
...> Z3 X1 NA
>> Z4 Y1 W1"),header = TRUE,stringsAsFactors=FALSE)
>> preval<-data.frame(Col1=unique(unlist(mydat[,c("Col2","col3")]))[-1],
>> Col2=NA,col3=NA)
>> rbind(preval,mydat)
>> mydat[is.na(mydat)]<-"0"
>>
>> Jiim
>>
>>
>> On Sun, Feb 25, 2018 at 11:05 AM, Val <valkremk at gmail.com> wrote:
>> > Sorry , I hit the send key accidentally here is my complete message.
>> >
>> > Thank you Jim and all, I got it.
>> >
>> > I have one more questi...
2018 Feb 25
2
include
...1"),header = TRUE,stringsAsFactors=FALSE)
> >> preval<-data.frame(Col1=unique(unlist(mydat[,c("Col2","col3")]))[-1],
> >> Col2=NA,col3=NA)
> >> rbind(preval,mydat)
> >> mydat[is.na(mydat)]<-"0"
> >>
> >> Jiim
> >>
> >>
> >> On Sun, Feb 25, 2018 at 11:05 AM, Val <valkremk at gmail.com> wrote:
> >> > Sorry , I hit the send key accidentally here is my complete message.
> >> >
> >> > Thank you Jim and all, I got it.
> >> >
&...
2018 Feb 25
2
include
Sorry , I hit the send key accidentally here is my complete message.
Thank you Jim and all, I got it.
I have one more question on the original question
What does this "[-1] " do?
preval<-data.frame(Col1=unique(unlist(mydat[,c("Col2","col3")]))[-1],
Col2=NA,col3=NA)
mydat <- read.table(textConnection("Col1 Col2 col3
Z1 K1 K2
Z2
2018 Feb 25
0
include
...gsAsFactors=FALSE)
>> >>
>preval<-data.frame(Col1=unique(unlist(mydat[,c("Col2","col3")]))[-1],
>> >> Col2=NA,col3=NA)
>> >> rbind(preval,mydat)
>> >> mydat[is.na(mydat)]<-"0"
>> >>
>> >> Jiim
>> >>
>> >>
>> >> On Sun, Feb 25, 2018 at 11:05 AM, Val <valkremk at gmail.com> wrote:
>> >> > Sorry , I hit the send key accidentally here is my complete
>message.
>> >> >
>> >> > Thank you Jim and all, I...