[R] Saving Rdataframe into a SQL Server Schema and updating the resulting table

2015-01-16 Thread Vijay Chowdhari
Hi all Can someone assist me in creating a table in SQL Server using a Rdataframe as well as updating it with new records Here's my sample script in R. library(RODBC) #Connecting to Datum myconn <-odbcConnect("Datum", uid="bihy", pwd="tarta") ### Server name is Datum Now I would like to save

[R] Training and testing on Unbalanced Data Set

2014-07-04 Thread Vijay goel
into train and test and do the fitting and testing on this data set only In first approach my results might get skewed so which approach should I take and Why ? -- Vijay Goel *+91-7501378852* __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] Fisher Scoring v/s Coordinate Descent for MLE in R

2014-07-03 Thread Vijay goel
R base function glm() uses Fishers Scoring for MLE, while the glmnet uses the coordinate descent method to solve the same equation ? Coordinate descent is more time efficient than Fisher Scoring as fisher scoring calculates the second order derivative matrix and some other matrix operation which ma

[R] Performing same steps on multiple dataframes using a loop - vijay

2014-01-17 Thread Vijay
speed column by 1000 So df.1cleaned would look like NameNetwork. Speed. State Hartford_CT. HSPA. 1. CT Can someone help me come up with a loop or a function that loops through all dataframes and produces all three dataframes Thanks Vijay Sent from

[R] Appending Excel File Data in different folders into Single Dataframe

2013-11-22 Thread Vijay Chowdhari
how I would go about this Vijay [[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-project.org/posting-guide.html and provide

[R] Reverse geocoding Latitude and Longitude to address/name of location

2013-11-20 Thread Vijay Chowdhari
knows how to do item 1 and/or 2 in R or if there is a function that can do this in another language. Thanks Vijay [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do rea

Re: [R] sum specific rows in a data frame

2010-04-15 Thread Vijay Nori
This is very cool...thanks Hadley. When are you planning to release that version? On Thu, Apr 15, 2010 at 9:09 AM, hadley wickham wrote: > On Thu, Apr 15, 2010 at 1:16 AM, Chuck wrote: > > Depending on the size of the dataframe and the operations you are > > trying to perform, aggregate or ddpl

Re: [R] search and replace

2010-04-15 Thread Vijay Nori
Dennis -- it does! However, how can a more generic situation be handled where South,North,East,West are replaced by x2,d6,qqw,mQ respectively? Thanks. On Wed, Apr 14, 2010 at 11:41 PM, Dennis Murphy wrote: > Hi: > > Does this work for you? > [[alternative HTML version deleted]] _

Re: [R] when deleting a row from a matrix gives a vector

2007-11-02 Thread Vijay Vaidyanathan
On Nov 2, 2007, at 12:50 PM, Sarah Goslee wrote: > x <- x[1, drop=FALSE] > >> Is there any way to force the result to remain a matrix, even if it >> has only one row or column, or even only one entry? Thanks, I think you might have meant ... x <- x[1,,drop=FALSE] Note the double commas ... - VV