Displaying 20 results from an estimated 5000 matches similar to: "To give column names of a data-frame"
2010 Jun 18
2
double integral
Sir,
I want to calculate double integral in R. Is there any function to do this?
Regards,
Suman Dhara
[[alternative HTML version deleted]]
2010 Jun 16
1
generating samples from multivariate distributions
Sir,
I want to draw random from any multivariate disrtibution. Is there any
function in R to do this?
Regards,
Suman Dhara
[[alternative HTML version deleted]]
2010 Jun 17
1
simulating data from a multivariate dist
Sir,
I am working on fitting distribution on multivariate financial data and then
simulate observations from that fitted distribution. I use stepAIC.ghyp()
function of 'ghyp' library which select the best fitted distribution from
generalized hyperbolic distribution class on the given dataset.
data(indices)
# Multivariate case:
aic.mv <- stepAIC.ghyp(indices, dist =
2010 Jun 05
1
Prediction in discriminant analysis
Sir,
I am working with multiclass discriminant analysis.(say response variable
has 3classes).In R, using lda(), I get 2 sets of coefficients for the
discriminant function.Now, I want to put a new x-vector(vector of
independent variables) and want to check it corresponds to which class of
y.Is there any formula for doing this? or how can I do this?
Regards,
Suman Dhara
[[alternative HTML
2010 May 31
1
getting the column name of a data frame
Sir,
I want to store the column name of a data frame as a vector and use the
vector to remove a column of the data frame ,if required.
Thanks,
Suman Dhara
[[alternative HTML version deleted]]
2010 Jun 06
2
fitting multinomial logistic regression
Sir,
I want to fit a multinomial logistic regression in R.I think mlogit() is the
function for doing this. mlogit () is in packege globaltest.But, I can not
install this package. I use the following:
install.packages("globaltest")
Can you help me?
Regards,
Suman Dhara
[[alternative HTML version deleted]]
2010 Jun 04
1
parttioning a matrix corresponding to different levels of y
Sir,
I have a problem regarding partitioning a matrix.I state my problem as
follows:
I have a y vector of length say 1000.Variable y has 4 levels say
0,1,2.Corresponding to each y(response), I have a x-vector(explanatory) as a
row of X matrix.Now, I want to partition the X matrix into 3 submatrices say
x1,x2,x3 corresponding to each level of y.Is there any function to do this
in R or how can I
2010 Jun 25
2
installing multicore package
Sir,
I want to apply mclapply() function for my analysis. So, I have to install
multicore package. But I can not install the package.
>install.packages("multicore")
It gives that package multicore is not available.
Can you help me?
Regards,
Suman Dhara
[[alternative HTML version deleted]]
2010 Jun 10
2
drawing curve
Sir,
I have a problem regarding drawing curve.I pose the problem as follows:
suppose I have two vectors:
x<-c(1:6)
y<-c(.01,.09,.08,.03,.001,.02)
plot(x,y)
It gives me the plotted points.But I want to draw a smooth curve passing
througt these points.
How can I do this?
Thanks & Regards,
Suman Dhara
[[alternative HTML version deleted]]
2010 Aug 15
1
Moving average in R
Hi,
I want to fit moving average trend in R. In google, I see that it is in the
package 'TTR'. But, I can't install this package. I have used the following
code:
>install.packages("TTR")
But, it says there is no package called 'TTR'.
Can you help me?
Regards,
Suman Dhara
[[alternative HTML version deleted]]
2010 May 31
1
Removing columns from data frame referenced by column index
Can you suggest me any way to remove a column of a data frame by the column
number,not by the column name.
Thanks,
Suman Dhara
[[alternative HTML version deleted]]
2010 Jun 16
1
Exporting multiple plots
Sir,
I want to export 10, say graphs using 'for' loop. What will be the command
and format for exporting multiple plots.
Regards,
Suman Dhara
[[alternative HTML version deleted]]
2010 Jun 23
1
calculating using user provided function
Sir,
I'm writing a program in R that requires the user to provide a funtion. On
the basis of the user provided function the program will proceed further and
give results. Is there any technique in R that allow a user to give his own
function and on the basis of that function the program will work.
Regards,
Suman Dhara
[[alternative HTML version deleted]]
2017 Jun 14
2
[WISH / PATCH] possibility to split string literals across multiple lines
Mark, that's actually a fair statement, although your extra operator
doesn't cause construction at parse time. You still call paste0(), but just
add an extra layer on top of it.
I also doubt that even in gigantic loops the benefit is going to be
significant. Take following example:
atestfun <- function(x){
y <- paste0("a very long",
"string for
2020 Mar 06
1
[PATCH] virtio_ring: Fix mem leak with vring_new_virtqueue()
On 2/25/20 9:13 PM, Jason Wang wrote:
>
> On 2020/2/26 ??12:51, Suman Anna wrote:
>> Hi Jason,
>>
>> On 2/24/20 11:39 PM, Jason Wang wrote:
>>> On 2020/2/25 ??5:26, Suman Anna wrote:
>>>> The functions vring_new_virtqueue() and __vring_new_virtqueue() are
>>>> used
>>>> with split rings, and any allocations within these
2008 Jun 14
1
Correcting the display of colnames and rownames
Dear all,
I have a data frame of dimension 720 columns by 360 rows, to which I am trying to add numerical row and column labels to, using the 'sequence' command. The original data, which I read in using 'read.table', had no such labels at all.
I've got as far as successfully using the sequence command and getting the labels to display. However, I'm finding that for the
2008 Jun 17
2
Reshape or Stack? (To produce output as columns)
Dear all,
I have used 'read.table' to create a data frame of 720 columns and 360 rows (and assigned this to 'Jan'). The row and column names are numeric:
> columnnames <- sprintf("%.2f", seq(from = -179.75, to = 179.75, length = 720)).
> rnames <- sprintf("%.2f", seq(from = -89.75, to = 89.75, length = 360))
> colnames(Jan) <- columnnames
2008 Jul 15
3
Melt (reshape) question
Dear all,
I
have a grid of 720 columns by 360 rows of global population density
values, and hope to convert this to column format using the 'melt' command in the 'reshape' package. I'm not receiving
any errors as such, but when the code has finished running, my output
looks like this:
> head(PopDens.long)
Latitude Longitude PopDensity
1 -84.75 V1 0
2
2008 Aug 20
4
Conversion - lowercase to Uppercase letters
I would like to know how to convert a string with characters to all
uppercase or all lowercase? If anyone could let me know if there exists a
function in R for the conversion, that will be very helpful.
Regards,
Suman
[[alternative HTML version deleted]]
2009 Oct 19
3
Import SPSS file to R
Hello,
In R, How to read SPSS file and access the data item?
Thank you.
Regards,
Suman Kundu
[[alternative HTML version deleted]]