[R] [R-pkgs] New CRAN package announcement: azlogr

2023-01-12 Thread Vivek Atal via R-packages
I am excited to announce that `azlogr` is published on CRAN! This package enables logging in 'R' by extending the functionality of 'logger' package. There is an option to add additional custom meta-data while logging, which can sometimes be helpful. Logging messages are displayed on console and

Re: [R] converting image formats

2021-03-24 Thread Vivek Sutradhara
ot;images", "nuclei.tif", package="EBImage")) writeImage(nucEBo, "C:/Rfiles/nuclei-3.jpg") # to convert nuc_EB_o nucEB_to_IMG <- nucEB_to_MAG <- #convert from imager library(imager) nuc_IMG_o <- load.image("C:/Rfiles/nuclei-3.jpg") # to convert nuc_

[R] converting image formats

2021-03-24 Thread Vivek Sutradhara
uot;C:/Rfiles/nuclei-3.jpg") nucEB_to_IMG <- nucEB_to_MAG <- #convert from imager library(imager) nuc_IMG_o <- load.image("C:/Rfiles/nuclei-3.jpg") nuc_IMG_to_EB <- nuc_IMG_to_MAG <- All help is appreciated. Thanks, Vivek [[alternative HTML version de

Re: [R] about a p-value < 2.2e-16

2021-03-18 Thread Vivek Das
; > > > PLEASE do read the posting guide > > http://www.R-project.org/posting-guide.html > > > > and provide commented, minimal, self-contained, reproducible code. > > > > > > __ > > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >

Re: [R] fusion of two matrices (numerical and logical)

2020-09-05 Thread Vivek Sutradhara
The result that I want to get is this: for (i in 1:5) { for (j in 1:4) { B[i,j] <- ifelse(C[i,j]==FALSE,0,B[i,j]) } } I would like to know if I can do this without loops. Den lör 5 sep. 2020 kl 20:18 skrev Vivek Sutradhara : > Hi > I would like to get help in combining two matri

[R] fusion of two matrices (numerical and logical)

2020-09-05 Thread Vivek Sutradhara
to get a matrix with the same dimensions as matrix A. At the coordinates given by the vector D1, I want to retain the values in matrix A. At the locations in D2, I want a zero value. I want to know if I can do this without using any loops. Thanks, Vivek [[alternative

[R] Interactive paint corrections on a raster image

2020-08-11 Thread Vivek Sutradhara
q(1119,1219,1)) Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘getValues’ for signature ‘"raster", "missing", "numeric"’ I would like to know my mistake here . I will appreciate all help t

Re: [R] how to add p values to bar plot?

2019-09-27 Thread Vivek Das
Hope this is clear. Vivek On Fri, Sep 27, 2019 at 9:52 PM Ana Marija wrote: > Awesome, thanks! > > Yes those two numbers on y axis I calculated as (#of EQTLs)/(#of genes) > and the same for the other, RG condition. So implicitly I do have a spread > just that data was not used to pl

Re: [R] how to add p values to bar plot?

2019-09-27 Thread Vivek Das
scale and do the same. Hope this helps. Good luck. Vivek On Fri, Sep 27, 2019 at 9:32 PM Ana Marija wrote: > Hi Vivek, > > Thanks for getting back to me and yes that is what I tried: > > library(ggpubr) > library(ggplot2) > df <- data.frame("prop" = c(7.75,

Re: [R] how to add p values to bar plot?

2019-09-27 Thread Vivek Das
You will need to add stat_compare_means. Take a look at here. http://www.sthda.com/english/articles/24-ggpubr-publication-ready-plots/76-add-p-values-and-significance-levels-to-ggplots/ library(ggpubr) p + stat_compare_means() Should be fine. Vivek On Fri, Sep 27, 2019 at 7:29 PM Ana Marija

Re: [R] overlaying points and lines on a surface3d rgl plot with axes

2017-10-19 Thread Vivek Sutradhara
the optimum theta and phi angles. Is there a way of interactively finding out what these angles are (i.e. from the initial position). After arriving at this optimum angle, is there then a method of plotting the points on top of the surface? Thanks, Vivek The code which worked for me : library(rgl

[R] overlaying points and lines on a surface3d rgl plot with axes

2017-10-19 Thread Vivek Sutradhara
l2$X1,vol2,mvol2$X2) I get the following error message for the surface3d command : Error in rgl.surface(x = c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L, 11L, : Bad dimension for cols Additionally, I want points and lines plotted. For example, the points (1,1,200) and (51,2,232). I don't seem

Re: [R] symbolic computing example with Ryacas

2017-09-19 Thread Vivek Sutradhara
fy(slope)) I was confused by the references to the yacas command. Now, I have chosen to omit it. Then I get what I want. Thanks, Vivek 2017-09-19 16:04 GMT+02:00 Bert Gunter : > Have you studied the "Introduction to Ryacas" vignette that come with the > package? > > Cheers,

[R] symbolic computing example with Ryacas

2017-09-19 Thread Vivek Sutradhara
"Subst(x,x0),deriv(my_func(x,U,x0,C), x)") PrettyForm(slope) I don't understand how I should use the Subst command. I want the slope of the first derivative at x=x0. How do I implement that? I would appreciate any help that I can get. Thanks, Vivek [[alternative HTML version

Re: [R] Annotation Ticks on the axis

2017-08-11 Thread Vivek Sutradhara
ere as well? Would appreciate continued help. Thanks 2017-08-11 11:49 GMT+02:00 PIKAL Petr : > Hi > > see in line > > -Original Message- > > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Vivek > > Sutradhara > > Sent: Friday, August

[R] Annotation Ticks on the axis

2017-08-11 Thread Vivek Sutradhara
y with ggplot. But I am not able to implement the secondary axis option with ggplot. Would appreciate help with that, if it is easier. Thanks, Vivek [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

Re: [R] Dendogram from RNAseq read count to show correlation between biological replicate using R

2017-06-09 Thread Vivek Das
practice R about how to work with it and then understand a standard workflow used in RNA-Seq, and follow some Bioconductor tools there. You will find your answers. Thanks -- Vivek Das On Fri, Jun 9, 2017 at 2:22 PM, Yogesh Gupta wrote

Re: [R] cygwin1.dll problems when installing packages from source

2017-06-03 Thread Vivek Sutradhara
Hi, I have now re-installed Rtools. This has solved my problem. Even previously, Rtools was the first on the path. However, thanks a lot for this help. I can now move on. Thanks, Vivek 2017-06-03 13:09 GMT+02:00 Duncan Murdoch : > On 03/06/2017 7:00 AM, Vivek Sutradhara wrote: > >&g

Re: [R] cygwin1.dll problems when installing packages from source

2017-06-03 Thread Vivek Sutradhara
Hi, As far as I can see, no. On checking, I have confirmed that the only location of cygwin1.dll is : C:\Rtools\bin Thanks Vivek 2017-06-03 12:57 GMT+02:00 Duncan Murdoch : > On 03/06/2017 6:31 AM, Vivek Sutradhara wrote: > >> Hi all, >> I am having some problems in updating

[R] Fwd: cygwin1.dll problems when installing packages from source

2017-06-03 Thread Vivek Sutradhara
-1 - forked process 5544 died unexpectedly, retry 0, exit code 0xC142, errno 11 make: vfork: Resource temporarily unavailable c:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/R/R-34~1.0PA/include" -I. -I../inst/include -IBmath -Imath/cephes -DNO_BOOST_THREADS -DNO_BOOST_ I would appr

[R] cygwin1.dll problems when installing packages from source

2017-06-03 Thread Vivek Sutradhara
8.0digest_0.6.12 xtable_1.8-2httpuv_1.3.3 mime_0.5ghit_0.2.17 devtools_1.13.2 On checking, I have confirmed that the only location of cygwin1.dll is : C:\Rtools\bin I have not had any similiar problems before prior R3.4. The only new installation that I have done recentl

[R] Facebook package error - Can't get reactions

2017-02-22 Thread Vivek kumar Singh
ay", token=fb_oauth,n=50,feed = T) works. Please let me know why am I getting error with reactions? Also, suggest if there are alternate packages for Facebook in R. Regards, Vivek [[alternative HTML version deleted]] __ R-help@

Re: [R] Duplicate row.names of lncRNA

2016-11-08 Thread Vivek Das
This is cross posted in Biostars https://www.biostars.org/p/221116/ . I do not see any problem with duplicate row names unless you have specific reasons to keep them. Here you are performing with transcript ids either with refseq or ensemble. Now every gene does not have unique transcript ids, they

Re: [R] Can anyone help me with the below problem? I have tried stackoverflow but no help

2016-10-25 Thread Vivek Das
Dear Sarah, Thank you for your reply. I cannot upgrade debian since it is an HPC and I do not have root priviledges. I will try to install and older version that is compatible and report. Thanks a lot. Regards, Vivek On Oct 26, 2016 1:46 AM, "Sarah Goslee" wrote: > I don'

[R] Can anyone help me with the below problem? I have tried stackoverflow but no help

2016-10-25 Thread Vivek Das
in it bu I having the problem. It would be kind if you can let me know how to fix it. Thanks http://stackoverflow.com/questions/40244946/error-with-installing-igraph-in-r-3-1-2-in-our-hpc-cluster-at-work -- Vivek Das [[alternative

[R] R Mysql Not reading all table names

2016-10-03 Thread Vivek Singh
es3<- fetch(rs1, n=-1) There are 25 tables in the database when I execute the above query on the MySQL prompt. However, the above R code giving me only 9 tables. It seems there is some cache from which R is getting 9 tables instead of 25 tables. Please help. Regards, Vivek Kumar Singh PhD stu

Re: [R] Not able to install RODBC package

2016-06-28 Thread Vivek Singh
Thanks Jeff. I used RMySQL instead and is working great. Regards, Vivek Kumar Singh PhD student, Information Systems Decision Sciences, MUMA College of Business, USF Phone- (813) 5809131 Web: http://vivek4.myweb.usf.edu/ On Tue, Jun 28, 2016 at 6:23 PM, Jeff Newmiller wrote: > Try anot

Re: [R] Not able to install RODBC package

2016-06-28 Thread Vivek Singh
Got a small fix for this issue. Sharing so that it may help others in future. options(repos='http://cran.rstudio.com/') Regards, Vivek Kumar Singh PhD student, Information Systems Decision Sciences, MUMA College of Business, USF Phone- (813) 5809131 Web: http://vivek4.myweb.usf.ed

[R] Not able to install RODBC package

2016-06-28 Thread Vivek Singh
> install.packages('RODBC') Installing package into ‘/home/vivek/R/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’ is unspecified) Warning: unable to access index for repository https://cloud.r-project.org/src/contrib Warning message: package ‘RODBC’ is not available (for R version 3

Re: [R] R getting "Killed" while running VAR model

2016-06-08 Thread Vivek Singh
and then 20 GB of swap. I have only 32GB of RAM and 20GB of swap in my server. Then the R was killed. So, i have two queries: 1. Is there a way to limit the amount of memory used by R so that it runs for longer time? 2. Is it some sort of inefficiency of garbage collector in R? Regards, Vivek

Re: [R] R getting "Killed" while running VAR model

2016-06-08 Thread Vivek Singh
t;both")* *Killed* Please help. Regards, Vivek Kumar Singh PhD student, Information Systems Decision Sciences, MUMA College of Business, USF Phone- (813) 5809131 Web: http://vivek4.myweb.usf.edu/ On Tue, May 31, 2016 at 4:41 PM, Uwe Ligges wrote: > Wild guess: You have huge and high dime

[R] R getting "Killed" while running VAR model

2016-05-31 Thread Vivek Singh
Hi, I am using VARS (vector autoregressive model). The process gets killed after running for sometime. Following is the output of R. vivek@isds-research:~/cloudAuction/padding/panel$ cat var.Rout R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foun

[R] problem with the use of parallel foreach

2015-12-22 Thread Vivek Sutradhara
dtj<-readRDS(filetext) dtAll<-rbind[list(dtAll,dtj)] rm(dtj);gc() } How is garbage collection handled in parallel computing? With the .combine = 'rbind' option, this may not be necessary. Could somebody comment on this? Would it be better to use the 'rbindlist' op

Re: [R] exporting tables from an access database using parallel foreach

2015-11-22 Thread Vivek Sutradhara
Hi Rainer and John, Thanks once again for your continued help. I have actually tried out mdbtools. I was able to get going on ubuntu. Unfortunately, to my disappointment, it was not helpful in my specific case. Because the access database is on a server which can be accessed only on windows and not

Re: [R] exporting tables from an access database using parallel foreach

2015-11-21 Thread Vivek Sutradhara
appears to take too long a time. I understand that there is no provision to do this by available methods. But, is it possible to get under the hood and find some hack? Jeff, I will take your suggestion and try my luck at the R-sig-db mailing list. Thanks, Vivek 2015-11-20 20:25 GMT+01:00 Jef

Re: [R] exporting tables from an access database using parallel foreach

2015-11-20 Thread Vivek Sutradhara
am hoping to progress with that for processing the data from the multiple chunks of data (the first step will be just to filter and gather the data of relevance). I hope that I have explained what I am looking for. Thanks, Vivek 2015-11-20 19:09 GMT+01:00 John McKown : > A possibility could

[R] exporting tables from an access database using parallel foreach

2015-11-20 Thread Vivek Sutradhara
Hi I want to extract data from a Microsoft access database having many tables with more than 1e7 rows. I find that the following code works to export a table to a rds file : # setwd('C:/sFolder') library(RODBC);library(DBI) ch<-odbcConnect("sample") #No. of rows in the table no

[R] Cross compiling R

2015-02-02 Thread Vivek Rangi
-gfortran CPPFLAGS=-I/opt/clanton-tiny/1.4.2/sysroots/i586-poky-linux-uclibc/usr/include/ LDFLAGS="-L/opt/clanton-tiny/1.4.2/sysroots/i586-poky-linux-uclibc/usr/lib/ --sysroot=/opt/clanton-tiny/1.4.2/sysroots/i586-poky-linux-uclibc" --prefix=/home/vivek/Smart_Tracker/R/R-3.1.2/vivek --with-r

Re: [R] Lines instead of points in a scatterplot

2014-09-12 Thread Vivek Das
HI, Try to change with plot(aggr, type="l") see what happens? This should work ------ Vivek Das On Fri, Sep 12, 2014 at 10:32 AM, Angel Rodriguez < angel.rodrig...@matiainstituto.net> wrote: > > > Dear su

Re: [R] Fwd: Need some assistance in plotting distributions

2014-07-08 Thread Vivek Das
plots in one image with different colors. Can this be done? -- Vivek Das On Tue, Jul 8, 2014 at 12:19 PM, jim holtman wrote: > Have you tried the density function: > > > a <- read.table('/users/jim/downloads/LG_fre

[R] Fwd: Need some assistance in plotting distributions

2014-07-08 Thread Vivek Das
Dear Users, I need some assistance in plotting some distribution enrichments, like I have files with some frequency values, now I want to plot plot the distribution of those frequencies for one sample and then on the same plot I want to plot the next samples where the frequency comes from another

[R] Change date time to epoch time

2013-11-16 Thread vivek kumar singh
17 10:39:46 MYT")** **[1] NA** **Warning message:** **NAs introduced by coercion ** **> as.numeric("2013-11-17 10:39:46 MYT")** **[1] NA** **Warning message:** **NAs introduced by coercion ** * Please let me know which function in R converts date-time to epoch time. Regards, Vivek

[R] cbind() function : Not able to display columns

2013-10-22 Thread Vivek Singh
re able to print for k[a], i.e., the first column but not able to correctly print the second and third columns. > k[a] [1] "1" "2" "3" > k[b] [1] NA NA NA > k[c] [1] NA NA NA Please let me know what am I doing wrong. -- Thanks and Regards, Vivek Kumar

Re: [R] automation of an R script to run

2013-10-11 Thread vivek
Steps: 1. write your code in R command line format 2. save to a .sh file 3. Add to cron of linux machine Regards, Vivek -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Johnson, Alex Sent: Friday, October 11, 2013 4:05 PM To: r

Re: [R] R function for Bisecting K-means algorithm

2013-10-10 Thread Vivek Singh
gt; Is this an R question, by the way? This is not a statistics list -- > it's an R programming help list. > > Cheers, > -- Bert > > On Tue, Oct 8, 2013 at 8:13 PM, Vivek Singh > wrote: > > Any help on this? > > > > Regards, > > Vivek > &

Re: [R] R function for Bisecting K-means algorithm

2013-10-08 Thread Vivek Singh
Any help on this? Regards, Vivek On Tue, Oct 8, 2013 at 2:36 PM, Vivek Singh wrote: > Hi All, > > Can someone please tell me* R function for Bisecting K-means algorithm*. > I have used *kmeans() *function but not getting good results. > > Please help. > > -- > Th

[R] R function for Bisecting K-means algorithm

2013-10-07 Thread Vivek Singh
Hi All, Can someone please tell me* R function for Bisecting K-means algorithm*. I have used *kmeans() *function but not getting good results. Please help. -- Thanks and Regards, Vivek Kumar Singh Research Assistant, School of Computing, National University of Singapore Mobile:(0065

Re: [R] R help for creating expression data of Differentially expressed genes

2013-05-08 Thread Vivek Das
0.0456828 0.0171938 0.597619 0.999418 0.675425 0.624723 1.023 0.361899 1.23395 1.80139 1.30457 0.692972 1.42658 1280.78 76.5147 4.67875 468.667 ------ Vivek Das PhD Student in Computational Biology Giuseppe Testa's Lab European School of Mol

Re: [R] R help for creating expression data of Differentially expressed genes

2013-05-07 Thread Vivek Das
trouble to use different functions to use this for my working. Anyone who can help me out with this can be of great help. -- Vivek Das PhD Student in Computational Biology Giuseppe Testa's Lab European School of Molecular Medicine IFO

[R] Line similarity

2013-04-30 Thread Satsangi, Vivek (GE Capital)
he rows, but I want to gain from the thoughts and learnings of others who may have taken the time to implement a package. I tried searching with the words "line similarity" or its variants to no avail. Thanks in advance for your pointers! Vive

Re: [R] save to file

2012-12-16 Thread Vivek Singh
A, USA > > __ > 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,

Re: [R] Mixed Anova

2012-12-16 Thread Vivek Singh
please check this: http://stats.stackexchange.com/questions/11079/problem-with-anova-repeated-measures-error-model-is-singular On Mon, Dec 17, 2012 at 12:11 PM, Stephen Sammut wrote: > model is singular > -- Thanks and Regards, Vivek Kumar Singh Alcatel-Lucent, Bangalore (91)9886

Re: [R] save to file

2012-12-16 Thread vivek kumar singh
On 17/12/2012 11:03, Felipe Carrillo wrote: > I did check that link but it doesn't do what I want..thanks for trying though. > > > Felipe D. Carrillo > Supervisory Fishery Biologist > Department of the Interior > US Fish & Wildlife Service > California, USA > http://www.fws.gov/redbluff/rbdd_jsmp.a

[R] SVM using R

2012-11-29 Thread vivek kumar singh
HI All, I am very new to R tool. Can some one please suggest me some tutorial links for understanding SVM using R. Regards, Vivek __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] custom metric for dist for use with hclust/kmeans

2010-05-07 Thread Vivek Ayer
-- Forwarded message -- From: Vivek Ayer Date: Fri, May 7, 2010 at 10:17 AM Subject: Re: [R] custom metric for dist for use with hclust/kmeans To: Greg Snow Hi Greg, The pam function is exactly what I needed. I can now create my own distance matrix, run as.dist on it and pass

Re: [R] custom metric for dist for use with hclust/kmeans

2010-05-06 Thread Vivek Ayer
Bump...no insights on defining custom metrics. Guess I'll give the other languages a shot. Vivek On Wed, May 5, 2010 at 10:13 AM, Vivek Ayer wrote: > Hi guys, > > I've been using the kmeans and hclust functions for some time now and > was wondering if I could specif

[R] custom metric for dist for use with hclust/kmeans

2010-05-05 Thread Vivek Ayer
to customize that as well. Is stuff out there, or would I have create my own? Thanks, Vivek __ 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 p

Re: [R] dopar parallel assignments

2010-04-29 Thread Vivek Ayer
Hi David, Thanks for the help. It's working! I still find it to be a new concept. I haven't encountered storing loops in objects in any other languages. Can it even be done in other languages? Very novel, quite intriguing. Thanks again, Vivek On Thu, Apr 29, 2010 at 3:44 PM, Dav

[R] dopar parallel assignments

2010-04-29 Thread Vivek Ayer
nce is %dopar% vs. %do%. If I use %do%, I get objects test_1.25 and test_1.50, but I don't get these objects if I use %dopar% even though it seemed to run through the loop in parallel. Thanks in advance, Vivek __ R-help@r-project.org mailing list http

[R] other methods for dist()?

2010-04-28 Thread Vivek Ayer
ng similar to that with log(). Thanks, Vivek __ 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, re

[R] Median on Aggregated data

2009-11-18 Thread Satsangi, Vivek (GE Capital)
- End SAS code Thanks for your guidance! Vivek Satsangi GE Capital Americas GE imagination at work [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEA

Re: [R] scatterplot3d bug??

2009-08-25 Thread Vivek Ayer
Great! Thanks again! Vivek 2009/8/25 Uwe Ligges : > I finally found some time to look at it: > > Yes, it does not work properly for angles > 180 degrees. Will try to find a > fix and make a new release soon. > > Best wishes, > Uwe Ligges > > > Vivek Ayer wrote:

[R] Point-to-point Truncation with truncreg possible?

2009-08-13 Thread Vivek Ayer
Hi all, Can you use the truncreg() function to do point-to-point truncation, i.e., specify a different point=, for each point in your dataset. I guess in that sense this would be a nonlinear fit. Thanks, Vivek __ R-help@r-project.org mailing list

Re: [R] For Loop Iteration: Variable Counter

2009-08-03 Thread Vivek Ayer
Got it..Thanks Vivek On Mon, Aug 3, 2009 at 9:13 AM, Steve Lianoglou wrote: > Hi, > > On Aug 3, 2009, at 12:09 PM, Vivek Ayer wrote: > >> Hey guys, >> >> How do I iterate such that I add 100 to the counter every time? >> >> Suppose: for (i in c(

[R] For Loop Iteration: Variable Counter

2009-08-03 Thread Vivek Ayer
Hey guys, How do I iterate such that I add 100 to the counter every time? Suppose: for (i in c(1:100)) I want i to be 1, 10, 20, 30, ... instead of 1,2,3,4,5 ... How can this be done? Thanks, Vivek __ R-help@r-project.org mailing list https

Re: [R] Looping through R objects with $ operator and tags

2009-07-30 Thread Vivek Ayer
ogDist,tempobj[["LogDist"]]) } where num is now ~100 or 1000. Thanks for the tips! I'm still a newbie in R, and hopefully I can learn to be more efficient next time. Thanks again, Vivek On Thu, Jul 30, 2009 at 3:01 PM, Phil Spector wrote: > Vivek - >   In R, you shouldn'

Re: [R] Looping through R objects with $ operator and tags

2009-07-30 Thread Vivek Ayer
t <- c(TotLogDist,objecti$LogDist) After this, I don't need to do anymore loops etc. I promise I'll use lists, lapply, and sapply from then on. Thanks, Vivek On Thu, Jul 30, 2009 at 9:04 AM, Vivek Ayer wrote: > Hi all, > > Suppose I want to set the values in a column to the lo

[R] Looping through R objects with $ operator and tags

2009-07-30 Thread Vivek Ayer
didn't work out. It creates objects with whole name object1$LogDist instead of just manipulating the column that's part of that object. Help appreciated, Vivek __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] Looping through R objects

2009-07-28 Thread Vivek Ayer
UE)) in shorthand: for {assign(paste,read(paste))} This creates individual objects for each csv file and allows me to have $ subjects, e.g., bc1$foo. Thanks again, Vivek On Tue, Jul 28, 2009 at 2:12 PM, Steve Lianoglou wrote: > Hi, > > On Jul 28, 2009, at 4:54 PM, Vivek Ayer wrote: > >>

[R] Looping through R objects

2009-07-28 Thread Vivek Ayer
? for (i in c(1:13)) ... Any ideas? Thanks, Vivek __ 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] Double Truncation Fit??

2009-07-27 Thread Vivek Ayer
Hey guys, Do you all know of a function that provides fitting for double-sided truncation? truncreg accounts for one-sided truncation, but not two, or at least I don't how to. Our outlier values are -115 on the left side and -55 on the right. Help appreciated,

Re: [R] Colors column don't give correct color with plot()

2009-07-24 Thread Vivek Ayer
Problem solved! Thanks! I'm still a noob at learning R, so eventually I'll figure out all these different datatypes. Vivek On Fri, Jul 24, 2009 at 11:35 AM, Henrique Dallazuanna wrote: > Isn't a bug, > > try this > > plot(d[,1],d[,2],col=as.character(d[,3])) >

[R] Colors column don't give correct color with plot()

2009-07-24 Thread Vivek Ayer
ot the data, I ran: plot(data[,1],data[,2],col=data[,3]) But the output reports a vertical line with colors: black red red black green going up. Is this a bug in R? If so, could someone fix it? Thanks, Vivek __ R-help@r-project.org mailing list https:

[R] Colors column don't give correct color with plot()

2009-07-24 Thread Vivek Ayer
ot the data, I ran: plot(data[,1],data[,2],col=data[,3]) But the output reports a vertical line with colors: black red red black green going up. Is this a bug in R? If so, could someone fix it? Thanks, Vivek __ R-help@r-project.org mailing list https:

[R] Symmetrically Trimmed Least Squares (STLS) Regression Analysis Help

2009-07-22 Thread Vivek Ayer
Hi all, Just started using R recently. Got OLS and Truncated Regression to work via lm() and truncreg(). But we need to use STLS for our data. Is there a function out there that does this, or can we use a clever workaround using what we already have? Thanks in advance, Vivek Ayer

[R] kernlab - custom kernel

2009-04-28 Thread Vivek Dikshit
function(x, y) { sum((x*y)^1.25) } class(s) <- "kernel" gene <- ksvm(Species ~ ., data = iris,kernel = s, C = 10, cross = 5) # above code gives the following error: Error in votematrix[i, ret < 0] <- votematrix[i, ret < 0] + 1 : NAs are not allowed in subscripte

[R] Fwd: kernlab - custom kernel

2009-04-28 Thread Vivek Dikshit
-- Forwarded message -- From: Vivek Dikshit Date: Tue, Apr 28, 2009 at 1:20 PM Subject: kernlab - custom kernel To: r-help@r-project.org hi, I am using R's "kernlab" package, exactly i am doing classification using ksvm(.) and predict.ksvm(.).I want use of cust

[R] kernlab - custom kernel

2009-04-28 Thread Vivek Dikshit
function(x, y) { sum((x*y)^1.25) } class(s) <- "kernel" gene <- ksvm(Species ~ ., data = iris,kernel = s, C = 10, cross = 5) # above code gives the following error: Error in votematrix[i, ret < 0] <- votematrix[i, ret < 0] + 1 : NAs are not allowed in subscripte