similar to: Excel to R

Displaying 20 results from an estimated 700 matches similar to: "Excel to R"

2011 Jun 01
3
conversion of matrix into list
Dear all, I have a matrix X which consists of 2 columns. I would like to convert this matrix into a list where every entry of the list consists of a single row of the matrix. Does anyone have a suggestions how to manage this? Thank you for your efforts in advance! Best, Martin [[alternative HTML version deleted]]
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 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 Feb 03
3
interpret significance from the contr.poly() function
Hello R-help I don’t know how to interpret significance from the contr.poly() function . From the example below : how can I tell if data has a significant Linear/quadratic/cubic trend? > contr.poly(4, c(1,2,4,8))               .L         .Q          .C [1,] -0.51287764  0.5296271 -0.45436947 [2,] -0.32637668 -0.1059254  0.79514657 [3,]  0.04662524 -0.7679594 -0.39757328 [4,]  0.79262909 
2011 Feb 02
2
unequally spaced factor levels orthogonal polynomial contrasts coefficients trend analysis
Hello [R]-help I am trying to find > a package where you can do ANOVA based trend analysis on grouped data > using orthogonal polynomial contrasts coefficients, for unequally > spaced factor levels. The closest hit I've had is from this web site: >(http://webcache.googleusercontent.com/search?q=cache:xN4K_KGuYGcJ:www.datavis.ca/sasmac/orpoly.html+Orthogonal+polynomial >l but I
2011 Feb 02
2
Finding the maximum in a particular group in a dataframe
Hello I am trying to find a way to find the max value, for only a subset of a dataframe, depending on how the data is grouped for example, How would I find the maxmium responce, for all the GPR119a condition below: I've tried tapply > tapply(GPR119data$responce, GPR119data$GPR119a, max) Error in tapply(GPR119data$responce, GPR119data$GPR119a, max) :   arguments must have same length
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
2016 Mar 06
2
GSoC 2016
Respected Sir, I am a MS CS scholar of Virtual University of Pakistan, I want to participate in GSoC 2016 for LLVM. Data Science, Networks, Information security, digital forensics and ethical hacking are my core areas of interest. Currently, I am working on a research project on live forensics of GPU and volatile memories like RAMs and Caches. I am looking forward your guidance to start my
2011 Feb 05
3
spline interpolation
Hello R-help I have the following data for a standard curve concentration(nM),fluorescence 0,48.34 2,58.69 5,70.83 10,94.73 20,190.8 50,436.0 100, 957.9   (1)Is there function in R to plot a spline. (2)How can I interpolation,say 1000 point from 0nM-100nM and store this as a data frame of concentration,fluorescence (3)How can I modify the code below so that instead of retrieving a concentration
2011 Feb 01
5
(no subject)
Hello I am trying to find a way to find the max value, for only a subset of a dataframe, depending on how the data is grouped for example, How would I find the maxmium responce, for all the GPR119a condition below: responce,mouce,condition 0.105902,KO,con 0.232018561,KO,con 0.335008375,KO,con 0.387025433,KO,GPR119a 0.576769897,KO,GPR119a 0.645120419,KO,GPR119a 0.2538608,KO,GPR119b
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
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
2011 May 12
2
group length
Hi   I have four groups   y1=c(1.214,1.180,1.199) y2=c(1.614,1.710,1.867,1.479) y3=c(1.361,1.270,1.375,1.299) y4=c(1.459,1.335) Is there a function that can give me the length for each, like the made up example below?   >function(length(y1:y2) [1] 3 4 4 2 [[alternative HTML version deleted]]
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]]
2006 Mar 28
1
Problems with pf + ftp-proxy on gateway
I'm trying to use pf + ftp-proxy n a 6.1-PRERELEASE machine. I have this line on inetd.conf: ftp-proxy stream tcp nowait root /usr/libexec/ftp-proxy ftp-proxy -n And this lines on pf.conf: rdr on $int_if proto tcp from any to any port ftp -> 127.0.0.1 port ftp-proxy pass in quick on $ext_if inet proto tcp from any port ftp-data to $ext_if:0 user proxy flags S/SA keep
2011 May 09
2
Creating Observation ID
If I have a data frame something like: Value=rnorm(30) Group = sample(c('A','B','C'), 30, replace=TRUE) df = data.frame(Value, Group) It seems like it should be simple to create an 'ObsID' column which indicates the observation order of each Value within each of the 3 groups. Somehow, I can't quite see how to do it without manually sub-setting the parent data