Displaying 5 results from an estimated 5 matches for "one1".
Did you mean:
one
2013 Sep 18
2
cov2cor exp
...1:p)
Just for curiosity, what is findFn('cov2cor') ?
Regards,
Kenn*
I don't know what findFn('cov2cor') is, I'm a total newbie to R but I
created a new, simpler to my opinion function for some descriptive
statistics as matrix functions for a matrix called "x":
one1=c(rep(1, nrow(x)))
means <- t(one1)%*%x/3#row vector of means
M=one1%*%means#A ?? ? ?? matrix ?? where each column is filled with the mean
value for that column
D=x-M#deviation matrix
S=(t(D)%*%D)/(nrow(x)-1)#Covariance matrix
R=function(S){###R is a Correlation matrix###
V=matrix(nrow=nrow(S...
2013 Feb 18
2
error: Error in if (is.na(f0$objective)) { : argument is of length zero
...for (i1 in 1:range11){
z_i1=-x[1]+(i1-.5)*delta1
for (j1 in 1:range11){
up1<-((-x[1]+j1*delta1-(1-x[2])*z_i1)/x[2])
down1<-((-x[1]+(j1-1)*delta1-(1-x[2])*z_i1)/x[2])
H1[i1,j1]<-pnorm(up1,mean=5,sd=1)-pnorm(down1,mean=5,sd=1)}
}
K1<-solve(I1-H1)
one1 <- matrix(1,nrow=t1,ncol=1)
u1 <- matrix(0,nrow=m1,ncol=1)
y1<-c(u1, 1, u1)
z1<-t(y1)
ARLV1<-K1%*%one1
ARLV21<-t(ARLV1)
return( abs((ARLV21%*%y1)-500)-1)
}
eval_f0 <- function(x) romberg(function(s) f(x, s), 0, 6)
of <- nloptr( x0=c(0.653,0.09),
eval_f=e...
2004 May 27
1
modes of objects
Hi R People:
I am looking for some objects:
>objects(pat="f")
[1] "dufus" "f" "f1" "fake.df" "ff" "fm1" "one.df"
"one1.df" "x.df" "xf"
>mode(objects(pat="f"))
[1] "character"
>
I would like to determine the mode of these objects. For instance, dufus
and f are functions, while fake.df and one.df are data frames.
I tried writing to a list, but still can't...
2018 Apr 17
2
Time intervals in a datframe
Hi all
I have a list of multiple datframes with the same column headers. The last column in each datframe contains a vector of "Interval" class after I have produced this column using "lubridate" package. I needed to convert my list of dataframes to be in a single dataframe for further analysis. I did this using the following syntax :
SingleDataframe <- ldply
2018 Apr 15
4
Adding a new conditional column to a list of dataframes
Hi all ..,
I have a list of 7000 dataframes with similar column headers and I wanted to add a new column to each dataframe based on a certain condition which is the same for all dataframes.
When I extract one dataframe and apply my code it works very well as follows :-
First suppose this is my first dataframe in the list
> OneDF <- Mylist[[1]]
> OneDF
ID Pdate