Re: [R] package colorspace and .WhitePoint question

2018-06-21 Thread Achim Zeileis
As a follow-up to this issue: A revised version of the "colorspace" package is now available on R-Forge at https://R-Forge.R-project.org/R/?group_id=20 This provides a function whitepoint() that can query and/or modify the whitepoint used in all color conversions within the package. To try

Re: [R] KNN

2018-06-21 Thread Jeff Reichman
David I figured out where I went wrong. But thank you for the response Jeff -Original Message- From: David L Carlson Sent: Thursday, June 21, 2018 11:43 AM To: reichm...@sbcglobal.net; R-help@r-project.org Subject: RE: [R] KNN It depends on what you are trying to do and what kind of

Re: [R] KNN

2018-06-21 Thread Eivind K. Dovik
Yes, however using caret you can do it directly using the preProcess parameter, e.g. train(y ~., data = train, method = "knn", preProcess = c("center", "scale")). Hope this helps. Eivind On Thu, 21 Jun 2018, Jeff Reichman wrote: R-Help Does one need to normalize ones data is using

Re: [R] KNN

2018-06-21 Thread David L Carlson
It depends on what you are trying to do and what kind of data you are using. If you are using Euclidian distance and your variables have different means and standard deviations, the answer is probably yes. That will weight each variable equally. Without standardization the variables with the

[R] KNN

2018-06-21 Thread Jeff Reichman
R-Help Does one need to normalize ones data is using the knn function within the caret Library. Jeff [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] compiling functions....

2018-06-21 Thread Sarah Goslee
There are many things you can do to improve speed in R. Byte compiling is just one of them. This chapter in Hadley Wickham's excellent Advanced R book covers both profiling and byte compiling. http://adv-r.had.co.nz/Profiling.html I've gotten some stunning improvements in speed through

[R] compiling functions....

2018-06-21 Thread akshay kulkarni
dear members, I a Day Trader based in INDIA. I use R for my research. I have a function ygusa(snlq,snlcqn) which takes 208 stocks and returns 4 best stocks for the next day(snlq is the list of 208 stocks and snlcqn is their names). However, the execution time is