Hello,
I am profiling memory usage using utils::Rprof() and subsequently summarizing
the profile using utils::summaryRprof(). According to the documentation
?summaryRprof, the option `memory = "both"` reports "memory consumption in Mb
in addition to the timings", i.e. the unit is megabytes. How
Sorkin, John wrote/hat geschrieben on/am 01.07.2024 17:54:
#I am trying to write code that will create a matrix with a variable number of
columns where the #number of columns is 1+Grps
#I can do this:
NSims <- 4
Grps <- 5
DiffMeans <- matrix(nrow=NSims,ncol=1+Grps)
DiffMeans
#I have a problem w
I think you should reconsider your goal. Matrices must have all elements of the
same type, and in this case you seem to be trying to mix a number of something
(integer) with mean values (double). This would normally be stored together in
a data frame or separately in a vector for counts and a ma
Às 16:54 de 01/07/2024, Sorkin, John escreveu:
#I am trying to write code that will create a matrix with a variable number of
columns where the #number of columns is 1+Grps
#I can do this:
NSims <- 4
Grps <- 5
DiffMeans <- matrix(nrow=NSims,ncol=1+Grps)
DiffMeans
#I have a problem when I try to
Às 16:54 de 01/07/2024, Sorkin, John escreveu:
#I am trying to write code that will create a matrix with a variable number of
columns where the #number of columns is 1+Grps
#I can do this:
NSims <- 4
Grps <- 5
DiffMeans <- matrix(nrow=NSims,ncol=1+Grps)
DiffMeans
#I have a problem when I try to
NSims <- 4
Grps <- 5
DiffMeans <- matrix(nrow=NSims,ncol=1+Grps)
DiffMeans
#I have a problem when I try to name the columns of the matrix. I want the
first column to be NSims, #and the other columns to be something like Value1,
Value2, . . . Valuen where N=Grps
Colnames <- as.vector("NSims")
num
#I am trying to write code that will create a matrix with a variable number of
columns where the #number of columns is 1+Grps
#I can do this:
NSims <- 4
Grps <- 5
DiffMeans <- matrix(nrow=NSims,ncol=1+Grps)
DiffMeans
#I have a problem when I try to name the columns of the matrix. I want the
firs
7 matches
Mail list logo