similar to: conversion of matrix into list

Displaying 20 results from an estimated 400 matches similar to: "conversion of matrix into list"

2011 Jul 20
2
Question about converting list items in matrix
Hi friends, I have got a list where each element might have variable number of members. $`4213` [1] "214077_x_at" $`164832` [1] "225996_at" "235977_at" $`339010` [1] NA $`23410` [1] "221562_s_at" "221913_at" "49327_at" $`285386` [1] "229764_at" $`2099` [1] "205225_at" "211233_x_at"
2011 May 13
3
Excel to R
Hello R-help   I am trying to copy and paste large column of data from windows Excel into R base speed sheet using:   Data1<-edit(data.frame())   But I can only copy and paste one cell at a time which is time consuming.   Also how can assign each column to a variable. [[alternative HTML version deleted]]
2011 May 23
2
Linear regression - several response variables vs few ind variables
Hi all, I need to run several simple linear regressions at once, using the following data. Response variables: Bird species (sp 1, sp2, sp3...spn). Independent variable: Natprop - proportion of natural area. covarate: Effort = hours). One single linear regression would be: lmSp1 <- lm(sp1~ natprop + effort). However, I need to run this linear regression for all bird species that I have
2011 Jul 07
3
coefficients lm of data.frame
Hi, I've a data frame like this: > as.data.frame(cbind(rnorm(1:12),rnorm(1:12))) V1 V2 1 -1.30849402 -0.52094136 2 0.96157302 0.76217871 3 -0.44223351 -1.72630871 4 -0.10432438 -1.04732942 5 -1.38748914 0.95877311 6 -0.63965975 0.65494811 7 -0.24058318 0.19496830 8 -0.11172988 1.01680655 9 0.08065333 0.22168589 10 0.25196536 0.84619914 11
2011 Jun 10
4
Linear multivariate regression with Robust error
Dear all, i am doing linear regression with robust error to know the effect of a (x) variable on (y)other if i execute the command i found positive trend. But if i check the effect of number of (x.x1,x2,x3)variables on same (y)variable then the positive effect shwon by x variable turns to negative. so plz help me in this situation. Barjesh Kochar Research scholar
2011 Jun 20
6
for loop and linear models
Hi, I have two datasets, x and y. Simplified x and y denote: X Y A B C A B C . . . . . . . . . . . . . . . . . . I want to implement all possible models such as lm(X$A~Y$A), lm(X$B~Y$B), lm(X$C~Y$C)... I have tried the following: fun<- function(x,y){ for(i in 1:length(colnames(x))){ for(j in 1:length(colnames(y))){
2011 Jun 21
1
Doubit about ts() functions
Hi everyone Please, I need one more help you I have some data that need to make a forecast. I´m using the command: Yst<-print(ts<-ts(Y,start=c(1,5),freq=7),calendar=T) to create the dayly time series by the dataframe Y. My data Y means: Y=measure dayly , start at 01/jul/2010 (thursday), for this reason that I use c(1,5). I need to create the time series aggregate by weakly (and not dayly as
2011 May 13
2
How to store a triangular matrix
Hello, I want to create a triangular matrix and only keep the lower triangle entries without having to allocate memory for the whole matrix, is there any way I can do something like  A<-matrix(data, nrow=50)  but for a triangular matrix? Thanks ERV [[alternative HTML version deleted]]
2011 Jun 29
3
time series interpolation
Hi there, I?ve got a datatable in R which I try to interpolate with this and get the Error below: > new$temp<- approx(w03_11temp$temp, n = (nrow(w03_11temp)*5))$y Error in new$temp <- approx(w03_11temp$temp, n = (nrow(w03_11temp) * 5))$y : Object of type 'closure' not registered Any idea?? Thanks a lot. -- View this message in context:
2011 May 31
0
ENC: Using lm() combined with sapply
Hi Caio, I just replied to a fellow who needed to run a series of regressions changing the dependent variables for the same period. I believe your solution might be similar to that one, just making the window dynamic instead. I used a lapply to store regressions and sapplys to extract stats from the lm()s. Please check the attachment and hope it?s useful. Filipe Botelho -----Mensagem
2011 Jul 12
1
applying function to multiple columns of a matrix
Hi, I want to apply a function to a matrix, taking the columns 3 by 3. I could use a for loop: for(i in 1:3){ # here I assume my data matrix has 9 columns j = i*3 set = my.data[,c(j-2,j-1,j)] my.function(set) } which looks cumbersome and possibly slow. I was hoping there is some function in the apply()/lapply() families that could take 3 columns at a time. I though of turning mydata in a
2008 Dec 13
2
What is "The Rails Way" to do this?
I have a PHP application with the following in one of the "views": <input type="button" onClick="newAlt()" value=" + "></nobr> The JavaScript for "newAlt()" is: // using DOM create new input box for alternate part function newAlt() { var html = "<input style=''background-color:#FFFFCC'' "; html +=
2005 Aug 03
1
help for cell2nb and queencell in spdep package
Dear Dr. Bivand and R-users, I have a 5 by 5 grid, say, location[1:5,1:5], and I want to know the indices of 8 neighbours of each cell. For example, for location[2,2], its neighbour coordinates are [1,1:3], [2,1], [2,3] and [3,1:3]. Sometimes I also need to remove edge effects (torus = TRUE). I have tried "cell2nb" function in your spdep package. Here's my example: > neigh
2012 Dec 17
4
Splitting up of a dataframe according to the type of variables
Dear R users, I have a dataframe which consists of variables of type numeric and factor. What is the easiest way to split up the dataframe to two dataframe which contain all variables of the type numeric resp. factors? Thank you very much for your efforts in advance! Best, Martin
2011 Oct 22
3
problem with as.Date
Dear all, I would like to convert the first column of a dataframe to a date (original format: year (4 digits) and month (last 2 digits)) >str(dat_FF) 'data.frame': 1022 obs. of 4 variables: $ date : int 192607 192608 192609 192610 192611 192612 192701 192702 192703 192704 ... $ Rm.Rf: num 2.69 2.52 0 -3.06 2.42 2.66 0 4.29 0.51 0.57 ... $ SMB : num -2.49 -1.25 -1.38 -0.2 -0.34
2013 Feb 28
3
Negative Binomial Regression - glm.nb
Dear all, I would like to ask, if there is a way to make the variance / dispersion parameter $\theta$ (referring to MASS, 4th edition, p. 206) in the function glm.nb dependent on the data, e.g. $1/ \theta = exp(x \beta)$ and to estimate the parameter vector $\beta$ additionally. If this is not possible with glm.nb, is there another function / package which might do that? Thank you very much for
2019 Aug 20
2
qcc con par
Hola colegas, por favor si me indican que estoy haciendo mal. Estoy tratando de usar el paquete QCC y colocar mas de gráfico de control en una sola ventana usando función "par" con "qcc" para presentar varios gráficos en la misma ventana. He probado pero no funciona, solo muestra un gráfico miren el código # set unequal sample sizes n <- c(rep(50,5), rep(100,5), rep(25, 5))
2010 Jan 26
10
Detect file change
Hello everyone! How can I detect if a folder have changed (sync logic) than run a script if it's true? I found this script over the net, but I think it's such complicated for that simple thing... #!/bin/bash ############### detectdir.sh by Jagbir Singh ################# # # script to detect changes in directory. #
2010 Jan 19
3
Moving the system from 5.3 to 5.4
Hello, I built a system based on centos 5.3, now i'm planing to move to 5.4. To do it I rebuilt all rpms making some changes. When I use a common centos 5.3, it automatically detects that 5.4 is available and move update for it when i run yum update. How does this work? How the system detects new version and update for it? I thought centos-release rpm just update repo for it, but I saw this
2012 Oct 01
2
Reading labels for very large heatmaps
Hello, I have a large (919 X 919), hierarchically clustered heatmap that I would like to read the labels off of. I have tried saving the figure in pdf format and enlarging it until I can see the labels, but if I make the labels small enough to read (so that they don't overlap) using cexRow and cexCol, they do not appear in the pdf. The limit seems to be anything below cexRow or Col = 0.06.