Re: [R] How prevent update of a package

2019-12-05 Thread Amit Mittal
Just install Older R from the project R archives in a separate directory Best Regards Please excuse the brevity of the message. This message was sent from a mobile device. From: R-help on behalf of Marc Girondot via R-help Sent: Friday, December 6, 2019 1:09

Re: [R] Unable to read csv files with comma in values

2019-04-11 Thread Amit Govil
Sorry for reverting back late (as I had some issues with my laptop) and thank you Bert and Duncan for your suggestions and approach. I'll try the solutions proposed and get back to you. Thanks Amit On Mon, Apr 8, 2019 at 3:30 AM Bert Gunter wrote: > ... and if anyone cares, here'

[R] Unable to read csv files with comma in values

2019-04-07 Thread Amit Govil
Hi, I have a bunch of csv files to read in R. I'm unable to read them correctly because in some of the files, there is a column ("Role") which has comma in the values. Sample data: User, Role, Rule, GAPId Sam, [HadoopAnalyst, DBA, Developer], R46443 I'm trying to play with the below code but it

Re: [R] Tidyverse data frame conversion from monthly to annual

2019-03-03 Thread Amit Mittal
objects would automatically take the date column and use them as row ids so there is obviously another simple loop you can generate for summing up . There would also be easy functions once you start with xts. Best Regards Amit +91 7899381263 Please request Skype as available  5th Year FPM

[R] Issues with R3.5.2

2018-12-24 Thread Amit Mittal
It asks you when you install packages after loading the current workspace TYPICALLY WHEN CORE PACKAGES ARE NOT SUFFICIENT BR Amit Amit Mittal 5th year - PhD in Finance and Accounting IIM Lucknow http://ssrn.com/author=2665511 *Top 10%, downloaded author since July 2017 From: Janh Anni

Re: [R] SVAR: error message

2018-10-23 Thread Amit Mittal
I had no problem using svar () I think you should try the code examples in the var package PDF by the authors, the research has since been quoted successfully Amit Mittal PhD in Finance and Accounting (tbd) IIM Lucknow http://ssrn.com/author=2665511 *Top 10%, downloaded author

Re: [R] GLM Model Summary

2018-10-16 Thread Amit Mittal
.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- __

Re: [R] keeping github packages up to date

2018-10-12 Thread Amit Mittal
phone. Please excuse my brevity. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html &g

Re: [R] Package updates for new versions

2018-10-11 Thread Amit Mittal
with git or other software development repositories. > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On

Re: [R] Package updates for new versions

2018-10-11 Thread Amit Mittal
.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- __ Amit Mittal Pursuing Ph.D. in Finance and Accounting Indian Ins

Re: [R] R - Reading a horizontally arranged csv file, replacing values and saving again

2018-10-01 Thread Amit Mittal
You can just transpose in xl and read the regular form. Also use na.omit(data) and is.na() to replace na with 0 or remove rows with na data items Amit Mittal PhD in Finance and Accounting (tbd) IIM Lucknow http://ssrn.com/author=2665511 *Top 10%, downloaded author since July 2017

Re: [R] Efficient way of loading files in R

2018-09-07 Thread Amit Mittal
> __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal,

Re: [R] Bitbucket code

2018-08-29 Thread Amit Mittal
I stumbled upon `remotes` and that is based on `devtools` but it fails because RTOOLS haven't been upgraded for 3.5.1 Sorry about posting twice and I am pretty sure I added this detail in another msg which will also be released by the moderator q yet :x Amit Mittal Sent fr

[R] Need some help with data-wrangling in R

2018-08-24 Thread Amit Govil
192.100.176.0/24 A, B, C 192.100.176.0-192.100.179.255 192.100.177.0/24 A, B, C 192.100.176.0-192.100.179.255 192.100.178.0/24 A, B, C 192.100.176.0-192.100.179.255 192.100.179.0/24 A, B, C How do I do this data transformation in R? Please assist. Thanks Amit [[alternative HTML version deleted

[R] memory issue

2017-05-02 Thread Amit Sengupta via R-help
HI,I am unable to read a 2.4 gig file into a table (using read.table) in a 64 bit R environment. Do you have any suggestions?Amit [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

[R] memory problem

2017-05-02 Thread Amit Sengupta via R-help
Hi,I was unable to read a 2.4 gig file into an R object using read.table in 64 bit R environment. Please let me have your suggestions.Amit Sengupta [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

[R] Need Help, Unable to find the problem in R Script

2016-12-27 Thread amit rathee
R/Sir,    i am trying to find precision and recall value for multi class software clustering problem using package "ClusterCrit"i have attached my source code "Clustering.txt" and input files "ClassCoupling.txt" & "JUnitGoldStandard"in my script for different combination of clustering i am

[R] Fw: Urgent help

2016-12-27 Thread amit rathee
thanks in advance..AMIT RATHEE 1 0.004 0 0.308 0.058 0.016 0.178 0.146 0.190.254 0.339 0.388 0.224 0.137 0.358 0.404 0.355 0.396 0.297 0.301 0.065 0.171 0.667 0.718 0.576 0.265 0.421 0.487 0.430.605 0.224 1.151 0.004 1

[R] Urgent Help

2016-12-25 Thread amit rathee
I am trying to perform hierarchical clustering and evaluating it using ClusterClit Package, my code is attached.my problem is that in each iteration even if my data is different in extCriteria() function but it is giving same result every time.kindly helpA Great thanks in advance..AMIT

[R] cv.binary problem

2016-06-15 Thread Amit Sengupta via R-help
appreciated. > cv.binary(fullmod) Error in sample.int(x, size, replace, prob) : invalid 'size' argument Regards,Amit [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.et

[R] cv.glm problem

2016-06-15 Thread Amit Sengupta via R-help
outside allowable range") :   missing value where TRUE/FALSE needed Regards,Amit [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

[R] readaff() problem

2015-10-12 Thread Amit Sengupta via R-help
ied and no cel files in specified directory:c:/Users/amit.sengupta/Desktop/myRfolder/craig Included are the outputs of installations. - ⌂ Home - 👤Amit - ⚙ Help Press ? for keyboard shortcuts. Close Ad - Mail - Contacts - Calendar

[R] preprocessing problem

2015-10-05 Thread Amit Sengupta via R-help
Hi,I am having a problem with the ReadAffy() in the university R programming environment. I install affyPLM and invoke library(affyPLM) in the following way. I have the cel files in the craig subdirectory. Please let me know how to resolve the problem.Amit source("http://bioconductor.org/biocLit

[R] Optimization function

2014-11-20 Thread Amit Thombre
appreciated. Regards Amit Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you

Re: [R] Using sapply instead of for loop

2014-11-20 Thread Amit Thombre
Thanks Charles. I will have to extract the min value from the list A by selecting the proper index. From: Charles Determan Jr [deter...@umn.edu] Sent: Wednesday, November 19, 2014 11:48 PM To: Amit Thombre Cc: r-help@r-project.org Subject: Re: [R] Using sapply

Re: [R] Using sapply instead of for loop

2014-11-19 Thread Amit Thombre
_ From: Charles Determan Jr [deter...@umn.edu] Sent: Wednesday, November 19, 2014 10:04 PM To: Amit Thombre Cc: r-help@r-project.org Subject: Re: [R] Using sapply instead of for loop The following provides array A with 3.212016 as the last value. The error values are indeed in the array here.

Re: [R] Using sapply instead of for loop

2014-11-19 Thread Amit Thombre
on the max value set the , stores the error value.array size for (i in 1:pmax) { for (j in 1:dmax) { for (k in 1:qmax) { for (l in 1:Pmax) { for (m in 1:Dmax) { for (n in 1:Qmax) { A<-sapply((1:Permax),function(p) far(p),simplify=FALSE) } } } } } #for looping through period value }

Re: [R] Using sapply instead of for loop

2014-11-19 Thread Amit Thombre
=function(e) { return(NA) } ) cat("Value of error", er[i,j,k,l,m,n,p]) cat("Value of i,j,k,l,m,n,p", i, j, k, l, m, n,p) } From: Charles Determan Jr [deter...@umn.edu] Sent: Wednesday, November 19, 2014 7:05 PM To: Amit Thombr

Re: [R] Using sapply instead of for loop

2014-11-19 Thread Amit Thombre
) { for (k in 1:qmax) { for (l in 1:Pmax) { for (m in 1:Dmax) { for (n in 1:Qmax) { A<-sapply((1:Permax),function(p) far(p),simplify=FALSE) } } } } } #for looping through period value } From: Charles Determan Jr [deter...@umn.edu] Sent: Wednesday, November 19,

[R] Using sapply instead of for loop

2014-11-19 Thread Amit Thombre
I am trying to replace a for loop by using sapply, The code is for forecasting using arima. The code is as follows:- --- far<-function(p) { cat("does it come here value of p", p) tryCatch({ air.model <-Arima(tsa,order=c(i-1,j-1,k-1), seasonal=l

[R] Help to run bootstrap in R

2013-09-16 Thread amit khatri
Hello R Team,      Thanks for this gigantic software Called R. I am new to R software. My name is Amit Khatri and currently  I am working as a Research Student in Department of Economics University of Mumbai, Mumbai, India. I need your suggestion on How to use

[R] USSL diagram

2013-04-09 Thread Amit Ghosh
is there any package available which can be be used to draw us salinity diagram? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] pre-clinical results analysis in R using the function 'aov'

2012-06-03 Thread Amit Novik
ANOVA for repeated measurements and then go PostHoc tests. Should I use the R function 'aov'? What should be its parameters and especially the model grammar? What format should I use for the data file (Groups(=Treatments), Subjects, TimePoints, Scores). Thank you very

[R] repeating a loop

2011-11-07 Thread Amit Patel
Hi I have implented boxplots in my script to create box plots BoxplotsCheck <- readline(prompt = "Would you like to create boxplots for any Feature? (y/n):")   if (BoxplotsCheck  == "y"){     BoxplotsFeature <- readline(prompt = "Which Feature would you like to create a Boxplot for?:")     Boxp

[R] Using R for grouped data based calculations ???

2011-08-22 Thread Amit Jain
looking for an exact solution to this but to some pointers or a nice example thanks -amit __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and

[R] Help with plotting plsr loadings

2011-06-08 Thread Amit Patel
Hi I am attempting to do a loadings plot from a plsr object. I have managed to do this using the gasoline data that comes with the pls package. However when I conduct this on my dataset i get the following error message. >plot(BHPLS1, "loadings", comps = 1:2, legendpos = "topleft", labels =

[R] Formula Interpreter in R

2011-06-03 Thread amit jain
Hi All, Before writing a simple formula intereter in R myself, i wanted to find out if any one has done it before. I could not locate it myself. I am looking for something like this - take a dataframe and a simple formula string as input and gives an output with formula applied on different col

[R] Help with Memory Problems (cannot allocate vector of size)

2011-05-18 Thread Amit Patel
While doing pls I found the following problem > BHPLS1 <- plsr(GroupingList ~ PCIList, ncomp = 10, data = PLSdata, jackknife > = >FALSE, validation = "LOO") when not enabling jackknife the command works fine, but when trying to enable jackknife i get the following error. >BHPLS1 <- plsr(Gr

[R] help with PLSR Loadings

2011-05-17 Thread Amit Patel
Hi When I call for the loadings of my plsr using the command, x <- loadings(BHPLS1) my loadings contain variable names rather than numbers. >str(x) loadings [1:94727, 1:10] -0.00113 -0.03001 -0.00059 -0.00734 -0.02969 ... - attr(*, "dimnames")=List of 2 ..$ : chr [1:94727] "PCIList1" "PCIL

[R] Help with PLSR with jack knife

2011-05-17 Thread Amit Patel
Hi I am analysing a dataset of 40 samples each with 90,000 intensity measures for various peptides. I am trying to identify the Biomarkers (i.e. most significant peptides). I beleive that PLS with jack knifing, or alternativeley CMV(cross-model-validation) are multivariateThe 40 samples belong

[R] Fw: Help with PLSR

2011-05-12 Thread Amit Patel
d[1], data = FullDataListTrans, validation = "LOO") Where am I going wrong. Also what is the easiest method to identify which of the 94,000 peptides are most important to the variance between groups. Thanks in advance for any help Amit Patel [[alternative HTML version delet

[R] Help with amelia

2010-12-22 Thread Amit Patel
Hi I have a dataset from biological data with forty samples whichh relate to four different treatments. Each sample has thousands of values but as usuual contains missing values I want to use EM to imput these missing values. I am doing tthis using amelia. Do I need to specify the various gr

[R] help with knn.impute

2010-12-22 Thread Amit Patel
Hi I have a dataset from biological data with forty samples whichh relate to four different treatments. Each sample has thousands of values but as usuual contains missing values I want to use knn to imput these missing values. I am doing tthis using knn.impute. Do I need to specify the various

[R] Help with Amelia

2010-12-22 Thread Amit Patel
Hi I have used the amelia command from the Amelia R package. this gives me a number of imputed datasets. This may be a silly question, but i am not a statistician, but I am not sure how to combine these results to obtain the imputed dataset to usse for further statistical analysis. I have lo

[R] Haver connectivity progress and issues

2010-11-24 Thread amit jain
r for the function DLXOpenDatabase which is successfully used in VB call Normally this call should give me an output "0" which shows the connection is successfully established, but the R crashes. My question is "Is this because Haver DLL malf

[R] Job scheduling in R

2010-11-19 Thread amit jain
Hi All, Can anyone point to any package/resouce to schedule a job in R which runs a .R file at a specified time ? I couldn't find anything useful in R Reference manual or RSiteSearch. I am sure its there but i am unable to locate. Thanks for your help. Puneet _

[R] Q reg accessing "HAVER" from R

2010-11-17 Thread amit jain
has anyone accessed Haver from R ? I have their api for connection to vb , c++ and other softwares...has anyone tried to use that api with R ? Any other help in this regard would be much appreciated. Thanks Amit __ R-help@r-project.org mailing list

[R] Help with decimal points

2010-09-07 Thread Amit Patel
Hi I have found a little problem with an R script. I am trying to merge some data and am finding something unusual going on. As shown below I am trying to assign (MatchedValues[Value2,Value]) to (ClusteredData[k,Value]) which are two separate dataframes. 1) By the following command you can s

[R] Help with unexpected symbol errors

2010-09-06 Thread Amit Patel
be doing wrong. I havent attached the data that the script uses because I'm pretty sure the principles i have used are right when running the script i get the above error on line 158 and 159 I am more than happy to provide further information(e.g the dataset) if it he

[R] Fw: Error in rowSums REPOST

2010-08-13 Thread Amit Patel
mnames")=List of 2 ..$ : chr [1:65530] "4" "5" "6" "7" ... ..$ : chr [1:40] "X1" "X2" "X3" "X4" ... > ?class > class(FeaturePresenceMatrix) [1] "matrix" Amit Patel wrote: > Hi > I am tryin

[R] Error in rowSums

2010-08-12 Thread Amit Patel
command TotalFeature <- rowrowSums(FeaturePresenceMatrix, na.rm = TRUE) I get the following error. Error in rowSums(FeaturePresenceMatrix, na.rm = TRUE) : 'x' must be numeric Any tips onhow I can get round this? Thanks in Advance Amit ___

[R] Help With ANOVA (corrected please ignore last email)

2010-07-06 Thread Amit Patel
Sorry i had a misprint in the appendix code in the last email Hi I needed some help with ANOVA I have a problem with My ANOVA analysis. I have a dataset with a known ANOVA p-value, however I can not seem to re-create it in R. I have created a list (zzzanova) which contains 1)Intensity Values 2)

[R] Help With ANOVA

2010-07-06 Thread Amit Patel
Hi I needed some help with ANOVA I have a problem with My ANOVA analysis. I have a dataset with a known ANOVA p-value, however I can not seem to re-create it in R. I have created a list (zzzanova) which contains 1)Intensity Values 2)Group Number (6 Different Groups) 3)Sample Number (54 different

[R] Help with Loops

2010-05-13 Thread Amit Patel
Hi I have tried many attempts but cant get the loop right, as I am not a strong programmer. What I am basically trying to do is compare 2 spreadsheets. The problem is that one of them only contain a portion of the overall data (TESTSAMP), where the other has a full datasetFULLSAMP. From the com

[R] rcorr p-values for pearson's correlation coefficients

2010-05-05 Thread Amit
quot; [63741,] "9996_at" "8615_at" "0.802257716655731" "0" [63742,] "9996_at" "8788_at" "0.810672044754028" "0" [63743,] "9996_at" "9567_at" "0.846206307411194" "0" [63744,] &

[R] extracting pairs from correlation matrix and p-value matrix

2010-04-30 Thread Amit
But I am puzzled!! Please help. regards Amit __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] plotting pca of samples in different colors

2010-04-18 Thread Amit
t;#calculating pca for columns > rat_pca=prcomp(t(rat),scale=T) >plot(rat_pca$x,pch=20,col=c("red","blue","green","brown")[c(a1,a2,a3,d)]) But after executing last command there is nothing plotted in the graph and it also does not give any erro

[R] Help with TukeyHSD

2010-04-15 Thread Amit Patel
Hi I am conducting ANOVA using the aov function I am also conducting TukeyHSD to obtain which of the groups show variance How can I obtain the first three p values from the list below? >zzz.aov <- aov(Intensity ~ Group, data = zzzanova) > TukeyHSD(zzz.aov) Tukey multiple comparisons of means

[R] Help with ANOVA in R

2010-03-09 Thread Amit Patel
Hi I am attempting Anova analysis to compare results from four groups (Samp1-4) which are lists of intensities from the experiment. I am doing this by first creating a structured list of the data and then conducting the ANOVA (Script provided below). Im an R beginner so am not sure if I am using t

[R] ANOVA questions

2010-03-03 Thread Amit Patel
I am attempting Anova analysis to compare results from four groups (Samp1-4) which are lists of intensities from the experiment. I am doing this by first creating a structured list of the data and then conducting the ANOVA (Script provided below). Im an R beginner so am not sure if I am using th

Re: [R] Bartlett Test

2010-03-01 Thread Amit Patel
bartlett.test(xbartlett2, gbartlett24)$p.value Error in bartlett.test.default(xbartlett2, gbartlett24) : there must be at least 2 observations in each group (There are at least 2 unique observations in each group) Thanks in advance - Original Message From: "Richardson, Patri

[R] Bartlett Test

2010-03-01 Thread Amit Patel
Hi I am trying to conduct a Bartlett test between two groups Samp 1 and Samp 2, both of which are vectors of equal length. I cant find any information on how to do this. Does the data need to be in a structured list. Thanks in advance __ R-help

Re: [R] fetching columns from another file

2010-01-24 Thread Amit
e sense to leave the dataset as > a data.frame (which read.table produces). > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com > >> -Original Message- >> From: r-help-boun...@r-project.org >> [mailto:r-help-boun...@r-project.org] On Behalf Of Amit >

[R] fetching columns from another file

2010-01-24 Thread Amit
;0.9953901" "0.9959256" "0.9958152" [4,] "3884_f_at" "3813_f_at" "0.9951781" "0.9953901" "0.9959256" "0.9958152" [5,] "3371_f_at" "3594_f_at" "0.9946130" "0.9938905" "0.9945572

[R] bootstrapping a matrix using boot package

2010-01-09 Thread Amit
10 then I got following >boot.exp=boot(ratio_exp,sample.cor,R=10) > str(boot.exp$t) num [1:5, 1:86025625] 1 1 1 1 1 ... In both the cases its not correct. So I am doing something wrong in writing the function sample.cor. Please help! regards Amit

Re: [R] plotting polynomial regression line

2009-12-21 Thread Amit
Thanks very much it solved my problem. cheers, Amit On Sun, Dec 20, 2009 at 7:56 PM, David Winsemius wrote: > > On Dec 20, 2009, at 1:35 PM, Amit wrote: > >> Dear All, >> I am trying to plot polynomial regression line to a scatterplot. I did >> following so fa

[R] plotting polynomial regression line

2009-12-20 Thread Amit
awn in the graph parallel to the y-axis. But I was expecting a curve line through the scatterplot. Am I doing something wrong? Please help! Best Amit __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the p

[R] How to calculate average correlation coefficient of a correlation matrix ?

2009-10-13 Thread Amit Kumar
Hi! All, I have large correlation matrix Cor. I wish to calculate average correlation coefficient for this matrix. Is there any function in R to do this? Thanks in advance. Amit __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] removing missing values from a matrix

2009-10-02 Thread Amit Kumar
Thanks! Jim It solved my problem. Best Amit On Fri, Oct 2, 2009 at 11:19 AM, jim holtman wrote: > Here is one way to do it.  BTW 'a'-'z' won't work because there are 41 > splits.  Use a list instead: > >> red <- matrix(seq(23688 * 164), nrow=23688, nco

Re: [R] removing missing values from a matrix

2009-10-01 Thread Amit Kumar
here any efficient way to do it? cheers! Amit > > On Thu, 1 Oct 2009, Amit Kumar wrote: > >> Hi! All, >> I am working with a large matrix of dimension 23689 x 162. Some of the >> values of this matrix is missing (NA). And it looks something like >> that: >>

[R] removing missing values from a matrix

2009-10-01 Thread Amit Kumar
4 9 6 [2,]5 0 6 0 1 [3,]0 2 11 2320 [4,]2 1 210 3 [5,]0 7 052 0 Please, help thanks. Amit __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listin

[R] merging columns from a large data set

2009-09-26 Thread Amit Kumar
]) Gch1 = as.list(Gchan1) green1 = do.call(cbind,Gch1) I am stuck! Please Help! Cheers! Amit __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and

[R] Help with averaging

2009-07-15 Thread Amit Patel
his causes all the pairs with even one NA return an NA value. I would prefer not to use for loops as this would slow the script down considerably. #SCRIPT STARTS rm(list=ls()) setwd("C:/Documents and Settings/Amit Patel") #na.strings makes na's readable zz <- read.csv("Pr95

[R] T.test error help

2009-07-09 Thread Amit Patel
Hi I am implementing the t.test in a loop and where the data is the same i get an error message. Error in t.test.default(Samp3, Samp1, na.rm = TRUE, var.equal = FALSE, : data are essentially constant The script i am using is for (i in 1:length(zz[,1])) { Samp1 <- zz[i,2:17] Samp2 <- zz[

[R] Help with if statements

2009-06-09 Thread Amit Patel
Hi I am trying to create a column in a data frame which gives a sigificane score from 0-7. It should read values from 7 different colums and add 1 to the counter if the value is <=0.05. I get an error message saying Error in if (ALLRESULTS[i, 16] <= 0.05) significance_count = significance_cou

[R] help to speed up loops in r

2009-06-08 Thread Amit Patel
Hi i am using a script which involves the following loop. It attempts to reduce a data frame(zz) of 95000 * 41 down to a data frame (averagedreplicates) of 95000 * 21 by averaging the replicate values as you can see in the script below. This script however is very slow (2days). Any suggestions

[R] help wth boxplots

2009-05-26 Thread Amit Patel
Hi I have a vector of data lets call zz (40 values from 4 samples) the data is already in groups, i can even split up the samples using SampA <- zz[,2:11] SampB <- zz[,12:21] SampC <- zz[,22:31] SampV <- zz[,32:41] I would like an output that gives me 4 boxplots on one plot one boxplot for the

[R] Fw: Help with loops(corrected question)

2009-05-15 Thread Amit Patel
--- On Fri, 15/5/09, Amit Patel wrote: > From: Amit Patel > Subject: Help with loops > To: r-help@r-project.org > Date: Friday, 15 May, 2009, 12:17 PM > Hi > I am trying to create a loop which averages replicates in > my data. > The original data has many rows. and co

[R] Help with loops

2009-05-15 Thread Amit Patel
Hi I am trying to create a loop which averages replicates in my data. The original data has many rows. and consists of 40 column zz[,2:41] plus row headings in zz[,1] I am trying to average each set of values (i.e. zz[1,2:3] averaged and placed in average_value[1,2] and so on. below is my script

[R] Help- extracting values

2009-04-16 Thread Amit Patel
I have csv files imported in r each with 2 columns and many many rows. I have sorted the data in them but want to extract some values. The first column is an ID The second is a p-value ( now sorted in increasing order with NA's last) I want to extract the rows with a p-value of less than 0.05)

[R] Help with ANOVA p-values

2009-04-14 Thread Amit Patel
Hi I have done ANOVA on a dataset (See Below) but am having problems retreiving the p-value. I am assuming that Pr(>F) is the p-value but cannot get this value or in fact any other value (e.g. DF) from the summary.Any suggestions?? I have tried sum<-summary(zzz.aov) > sum$Pr(>F) Error: unexpec

[R] Help with Wilcoxon Test

2009-03-02 Thread Amit Patel
Hi I have 2 sets of data that I want to do a Wilcoxon test on. They are of the same dimension. One has 4 zero values and the other has 5. > dim(SampA) [1] 1 10 > dim(SampV) [1] 1 10 I get the folowing error Error in wilcox.test.default(SampA, SampV, na.rm = TRUE, paired = FALSE, : 'x' mu

[R] Help with t.test

2009-02-24 Thread Amit Patel
Hi I have managed to do a paired t-test with a data set i have 5 colums of data im dealing with GENE SampA SampB SampC SampVehicle ctcc 859 na145 24 gtcg 45 5 54 69 and so on but they are much larger col

[R] Help with t.test

2009-02-23 Thread Amit Patel
Hi I have managed to do a paired t-test with a data set i have 5 colums of data im dealing with GENE              SampA              SampB              SampC                   SampVehicle ctcc                   859  

[R] help with reshaping (no file attached)

2009-02-13 Thread Amit Patel
MCI A1 A2 A13 A14 A23 A24 A33 A34 Grouped together 56766 N/A N/A N/A N/A N/A N/A N/A N/A N/A 6459 N/A N

[R] help with reshaping

2009-02-13 Thread Amit Patel
hi Im having some problems reshaping Ive managed to apply it but have some problems the attached document will explain any help is appreciated __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the po

[R] Stacking data

2009-01-29 Thread Amit Patel
Hi I have data in the format below      Age            V1       V2      V3       V4    23646         45190 50333 55166 56271    26174         35535 38227 37911 41184    27723          25691 25712 26144 26398 and would like to sort it as fo

[R] t-test

2009-01-29 Thread Amit Patel
When doing the t-test in the below manner will r compare each element of the array with the relevant one. I.e. if i was comparing x and y would (1 and 0) and (1 and 9) be treated as separate variables. Or does it just assume one variable. # test data x <- c(1,1.1,1.15,1.2,1.21,1.23) y <- c(

[R] ANOVA in R

2009-01-29 Thread Amit Patel
Hi I Have a very large dataset that I would like to conduct ANOVA tests on. Im not a very strong programmer so any help would be appreciated. the format is Identifier             A1       A2        B1      B2       C1   C2      Norm1         N

[R] structure Arrays

2008-12-16 Thread Amit Patel
Hi Does anyone know how I can use structured arrays in r similar to a dataframe in matlab [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] R help

2008-11-28 Thread amit nirmalkar
Dear Sir I am Amit Nirmalkar, M. Sc. Statistics. I generally use SPSS package for analysis. I wanted to run Conditional Logistic Regression in SPSS but this technique is not available. So I thought of R s/w. I am totally blank about R. Can you please send me few of R. Also how to run

[R] PCA HCA

2008-10-19 Thread Amit Patel
Hi I am attempting PCA and HCA on a dataset The head of the table looks like this VariableSamp1Samp2Samp3 109232 276 352 222 244 I cant stop R from treati

[R] HI

2008-09-16 Thread Amit Patel
Does anyone know an easy way to convert all the zero values in a imported csv table into NA's [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

Re: [R] Ellipsis arguments for plot.formula

2008-07-11 Thread Amit Ganatra
, 2008, 9:45 AM > You could replace the one line in my.plot with this: > > eval.parent(substitute(plot( x, y, cex.axis=0.5, ...))) > > > On Fri, Jul 11, 2008 at 10:41 AM, Amit Ganatra > <[EMAIL PROTECTED]> wrote: > > > > Thank you. That does work for the titl

Re: [R] Ellipsis arguments for plot.formula

2008-07-11 Thread Amit Ganatra
t; Subject: Re: [R] Ellipsis arguments for plot.formula > To: [EMAIL PROTECTED] > Cc: "Bert Gunter" <[EMAIL PROTECTED]>, r-help@r-project.org > Date: Friday, July 11, 2008, 8:31 AM > A workaround is to use the title command instead: > > my.plot(y ~ x, tdf) > title(

Re: [R] Ellipsis arguments for plot.formula

2008-07-11 Thread Amit Ganatra
> nothing. While bugs > certainly can and do arise, I think our first and almost > always correct > impulse should be to assume that there's something that > we don't understand > and phrase our queries accordingly. We owe the developers > this courtesy. > > Ch

[R] Ellipsis arguments for plot.formula

2008-07-10 Thread Amit Ganatra
Hi: I have a function as follows: my.plot<- function( x, y = NULL, ... ) { plot( x, y, cex.axis=0.5, ...) } Set up the variables: x <- 1:10; y <- x; tdf <- data.frame( x, y ); main.str <- "test" I will exercise the function in two ways: > my.plot( y ~ x, tdf, main = "test" ) This works fi

Re: [R] Plotting a function with a histogram

2008-05-09 Thread Amit Soni
Thank you for your replies. I figured out that curve has an option of add which adds it to a previously existing graph. Thank you, Amit On Fri, May 9, 2008 at 10:07 AM, Amit Soni <[EMAIL PROTECTED]> wrote: > Hi, > > I have a histogram of an array of numbers. > hist(v,10) &g

[R] Plotting a function with a histogram

2008-05-09 Thread Amit Soni
Hi, I have a histogram of an array of numbers. hist(v,10) How can I plot a function, say a semi circle, curve(sqrt(2.25-x*x), -1.5,1.5) in the same graph? Thank you [[alternative HTML version deleted]] __ R-help@r-project.org mailing list htt

[R] Equivalent of TensorRank

2008-03-26 Thread Amit Soni
Hi, In Mathematica, if we have a 3X3 matrix A, we can get its dimensions by: Dimensions[A] = {3,3} TensorRank[A] = 2 In R, we have dim() for Dimensions[]. Is there any direct function similar to TensorRank in R? Thank you [[alternative HTML version deleted]] ___

  1   2   >