Re: [R] Save spatial data in a csv file

2024-11-30 Thread Hasan Diwan
Kindly respond with the output of `dput(nyc_ct_geo)` -- thank you! -- H -- OpenPGP: https://hasan.d8u.us/openpgp.asc If you wish to request my time, please do so using *bit.ly/hd1AppointmentRequest *. Si vous voudriez faire connnaisance, allez a *bit.ly/hd1Ap

Re: [R] Warning message: Removed 888 rows containing missing values or values outside the scale range (`geom_line()`)

2024-10-03 Thread Hasan Diwan
These are warnings, not errors. On Thu, 3 Oct 2024 at 21:02, roslinazairimah zakaria wrote: > Dear all, > I tried to rerun the examples given by Hyndman in otexts but keep on > getting errors and I have searched through google but no solution yet. > > Thank you in advance for any help given. > >

Re: [R] Change data frame to time series data

2024-10-02 Thread Hasan Diwan
> dt_ts['2014-01-01 00:00:00/2014-12-15 23:59:00'] Does that work? -- H -- OpenPGP: https://hasan.d8u.us/openpgp.asc If you wish to request my time, please do so using *bit.ly/hd1AppointmentRequest *. Si vous voudriez faire connnaisance, allez a *bit.ly/hd1Ap

Re: [R] Change data frame to time series data

2024-10-02 Thread Hasan Diwan
On Wed, 2 Oct 2024 at 08:20, roslinazairimah zakaria wrote: > Let say, this is my data and I want to extract from 2014-01-01 00:00:00 > to 2014-01-01 16:30:00 > > dt_ts['2014-01-01 00:00:00'::'2014-01-01 16:30:00'] Try that? -- OpenPGP: https://hasan.d8u.us/openpgp.asc If you wish to request

Re: [R] Change data frame to time series data

2024-10-02 Thread Hasan Diwan
On Wed, 2 Oct 2024 at 07:53, roslinazairimah zakaria wrote: > Next question, how do I delete the date from 16 December until 31 December > 2014? > Something like: myData <- xtsObj[myData$date < "2014-12-16" & myData$date > "2024-12-31"] -- H -- OpenPGP: https://hasan.d8u.us/openpgp.asc If you

Re: [R] Plot R graphs in aws

2023-04-23 Thread Hasan Diwan
Alternatively, you can put R-studio server on AWS by going to https://www.louisaslett.com/RStudio_AMI/. -- H On Thu, 20 Apr 2023 at 04:58, Duncan Murdoch wrote: > On 20/04/2023 7:43 a.m., Naresh Gurbuxani wrote: > > In my Amazon Web Services (AWS) account, I use R via emacs launched from > termi

Re: [R] (no subject)

2023-01-26 Thread Hasan Diwan
Upananda. On Mon, 16 Jan 2023 at 12:55, Upananda Pani wrote: > Greetings! I would like to know how to create the lag variable for my data. > Kindly provide a link to your data, on a publicly accessible page or a means to generate fake data that illustrates your issue. -- H -- OpenPGP: https://

Re: [R] fortune nomination WAS: Re: How long does it take to learn the R programming language?

2022-09-28 Thread Hasan Diwan
A minute to learn, a lifetime to master? -- H On Wed, 28 Sept 2022 at 11:03, Berry, Charles wrote: > Aha! > CCB > > > On Sep 27, 2022, at 6:08 PM, Rolf Turner > wrote: > > > > > > On Mon, 26 Sep 2022 11:14:57 +0800 > > Turritopsis Dohrnii Teo En Ming wrote: > > > >> Subject: How long does it t

Re: [R] RMariaDB returns a query without microseconds

2021-07-26 Thread Hasan Diwan
Afternoon, > https://mariadb.com/kb/en/microseconds-in-mariadb/ -- seems you're > hitting a MariaDB (or perhaps, inherited from MySQL) limitation here. -- H > -- OpenPGP: https://hasan.d8u.us/openpgp.asc If you wish to request my time, please do so using *bit.ly/hd1AppointmentRequest

Re: [R] Beginner problem - using mod function to print odd numbers

2021-06-04 Thread Hasan Diwan
unlist(sapply(seq(1,100), function(n) { if(n %% 2) n })) yields: [1] 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 [26] 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 As for why your solution isn't working, if you'd like me to take a close

Re: [R] read_csv not recognized

2021-03-08 Thread Hasan Diwan
function (file, col_names = TRUE, col_types = NULL, locale = default_locale(), na = c("", "NA"), quoted_na = TRUE, quote = "\"", comment = "", trim_ws = TRUE, skip = 0, n_max = Inf, guess_max = min(1000, n_max), progress = show_progress(), skip_empty_rows = TRUE) { tokenizer <-

Re: [R] COVID-19 datasets...

2020-05-04 Thread Hasan Diwan
On Mon, 4 May 2020 at 11:32, Bernard McGarvey wrote: > Just curious does anyone know of a website that has data available in a > format that R can download and analyze? > https://hd1-units.herokuapp.com/covid has a days parameter one can adjust to go back in time and a suffix parameter to obtain

Re: [R] how to read a database in R?

2020-01-31 Thread Hasan Diwan
Ms Marija, Would you happen to know which program created it? If not, you can try the Unix file command, if you have access to that. -- H [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see h

Re: [R] CRAN UC Berkeley link

2020-01-26 Thread Hasan Diwan
https://cran.r-project.org/mirmon_report.html Let them know what's going on. [[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 do read th

Re: [R] R 3.6.2 is released

2019-12-12 Thread Hasan Diwan
Congrats on the release! -- H On Thu, 12 Dec 2019 at 06:20, Spencer Graves < spencer.gra...@effectivedefense.org> wrote: > Ditto. Spencer Graves > > > On 2019-12-12 07:54, Rich Shepard wrote: > > On Thu, 12 Dec 2019, Peter Dalgaard via R-help wrote: > > > >> The build system rolled up R-3.6.2.ta

Re: [R] R 3.6.1 is released

2019-07-05 Thread Hasan Diwan
Congrats to the lot of you/us! -- H -- OpenPGP: https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1 If you wish to request my time, please do so using *bit.ly/hd1AppointmentRequest *. Si vous voudrais faire connnaisance, allez a *bit.ly/hd1Ap

Re: [R] Calling R code from Javascript

2019-05-24 Thread Hasan Diwan
Sunanda, I'd suggest you expose a model and methods to the web using shiny or something. After which, you just need to use jquery to call the HTTP endpoint. If you need further assistance, please email me off list and I'll provide. -- H On Fri, 24 May 2019 at 18:05, Sunanda Iyengar via R-help < r-

Re: [R] R 3.4.4 is released

2019-05-10 Thread Hasan Diwan
Congrats to the team! -- H On Thu, 18 Apr 2019 at 08:35, Michael Dewey wrote: > Dear Stephen > > Questions about RStudio ae best asked in their help forums but I would > definitely install the latest version of R and RStudio and do > update.packages before asking > > Michael > > On 18/04/2019 13

Re: [R] (no subject)

2019-02-10 Thread Hasan Diwan
This is spam, right? -- H On Sun, 10 Feb 2019 at 12:36, Diego Miro wrote: > 4 xxx ff > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-h

Re: [R] (no subject)

2019-02-02 Thread Hasan Diwan
Look at the rootSolve package[1] for what you need. Hope it helps... -- H On Sat, 2 Feb 2019 at 06:46, malika yassa via R-help wrote: > Please, can you help me I have a equation to solve by newton method but I > can not do it > for example > > f<-function(x) { > > > 2+X2-X3=0} > this equation ha

Re: [R] Reading an excel file

2019-01-10 Thread Hasan Diwan
https://cran.r-project.org/web/packages/xlsx/xlsx.pdf You'll need the JDK (>= 1.6) -- H On Thu, 10 Jan 2019 at 13:40, Bernard Comcast wrote: > What is the best way to read in data of any type from an Excel 2016 .xlsx > file? > > Thanks > > Bernard > Sent from my iPhone so please excuse the spe

Re: [R] Mailinglist

2019-01-07 Thread Hasan Diwan
dput(sample(mydata, n=25)) is probably going to be more representative. -- H On Mon, 7 Jan 2019 at 00:56, PIKAL Petr wrote: > Hi Rachel. > > You already have got several suggestions, but results depend on structure > of your data. The best way from your side would be just copy a part of your > d

Re: [R] Mailinglist

2019-01-06 Thread Hasan Diwan
Maybe you could put the CSV in a gist or something? -- H On Sun, 6 Jan 2019 at 10:58, Rachel Thompson wrote: > Hi Rich, > > I really feel lost at this point. > I need a code that helps me count the phone activity level(high/low/none), > the screen activity (on/off) and the amount calls and SMS o

Re: [R] R and factorytalk historian

2018-12-12 Thread Hasan Diwan
Could you not script Excel to export automatically to CSV -- https://stackoverflow.com/a/10803229/783412, for example -- and import the result into R? -- H On Wed, 12 Dec 2018 at 07:17, PIKAL Petr wrote: > Hi > > Well, the final answer is that data from FTH could be transfered to other > softwar

Re: [R] Instagram Analysis

2018-09-25 Thread Hasan Diwan
Michael, On Tue, 25 Sep 2018 at 08:15, Michael Haenlein wrote: > I'm looking for an R package that allows me to analyze Instagram. > Specifically I would like to download for a given account the list of other > accounts that either this account follows or that follow this account (the > followers

Re: [R] (no subject)

2018-07-09 Thread Hasan Diwan
https://imgur.com/a/0f72Fsz results from the following code: ggplot()+borders("world", colour="gray50", fill="gray50")+geom_line(aes(x=Longitude, y=Latitude), birds) It's ugly, but it will give you a starting point. -- H On Mon, 9 Jul 2018 at 10:53, Laura Steel wrote: > > I am a beginner to R an

Re: [R] Fwd: Question

2018-07-08 Thread Hasan Diwan
Farshad, On Sun, 8 Jul 2018 at 09:29, Farshad Fathian wrote: > > Thank you so much for your reply. But when I install the "RWinEdt" package, > the R unable to install it. I see the below warning: > > "Error: package or namespace load failed for ‘RWinEdt’: > package ‘RWinEdt’ was installed by an R

Re: [R] A question on Statistics

2018-06-30 Thread Hasan Diwan
Christofer, On Sat, 30 Jun 2018 at 12:54, Jeff Newmiller wrote: > > You should use Stack Exchange for questions about statistics. Specifically, https://stats.stackexchange.com/ -- H -- OpenPGP: https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1 If you wish to request my time,

Re: [R] OT --- grammar.

2018-06-24 Thread Hasan Diwan
On Sun, 24 Jun 2018 at 14:46, Rolf Turner wrote: > > > Does/should one say "the degrees of freedom is defined to be" or "the > degrees of freedom are defined to be"? "are", the noun in your statement is "degrees", while the fragment "of freedom" acts as an adjective, narrowing the scope of the te

Re: [R] Any Unsupervised Learning Algorithm for Time Series Forecasting in R

2018-06-20 Thread Hasan Diwan
Paul, On Wed, 20 Jun 2018 at 09:04, Paul Bernal wrote: > I would like to know if R has any unsupervised algorithm to generate > forecasts for historical data. Yes , it does. Perhaps you'd be kind enough to provide a sample of your data --dput(sample(pauls.data)) on gist.github.com -- and what y

Re: [R] Issues when Trying to Install Packages in R

2018-06-11 Thread Hasan Diwan
Paul, install.packages('lubridate', type='source', repos='https://cran.rstudio.com') # worked for me You should be able to copy/paste the line into an R session. -- H -- OpenPGP: https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1 If you wish to request my time, please do so us

Re: [R] change location of temporary files

2018-02-23 Thread Hasan Diwan
Kumar, tempfile has a dir parameter that you can use to designate the directory the file will be created in.-- H On 23 February 2018 at 10:52, Kumar Mainali wrote: > I would like to change where R stores the temporary files to my external > hard drive in my iMac. This is important because the te

Re: [R] R vs PYTHON vs SAS vs SPSS?

2017-11-30 Thread Hasan Diwan
Yes On 30 November 2017 at 22:28, wrote: > I am a mature learner; 3 masters > some doctoral work “ statistics for social sciences; psychological > statistics “ > worked in spss and sas 2005 – 2006 > now have forgotten ; relearning > my question is this can I do everything in R and Python and SAS

Re: [R] Creating a SQL R package

2017-11-15 Thread Hasan Diwan
Joao, On 15 November 2017 at 05:39, João Paulo Lemes Machado < lemesmach...@gmail.com> wrote: > I intend to create a package for the R that > makes the SQL language commands available for use. What do you think? Any > tips on > where to start? > https://github.com/ggrothendieck/sqldf seems to b

Re: [R] My very first loop!! I failed. May I have some start-up aid?

2017-08-18 Thread Hasan Diwan
[answers inline] On 18 August 2017 at 20:08, Dagmar wrote: > > myframe<- data.frame (ID=c("Ernie", "Ernie","Ernie","Ernie"), > Timestamp=c("24.09.2012 08:00", "24.09.2012 09:00", "24.09.2012 10:00", > "25.09.2012 10:00"), Longitude=c("8.481","8.482","8.483","8.481"), > Latitude=c("54.753","54.753

Re: [R] How export data set (available in the package) from R?

2017-07-29 Thread Hasan Diwan
write.csv(flchain, 'flchain.csv') should import into Excel without problems. -- H On 29 July 2017 at 23:27, Jeff Newmiller wrote: > Read the help file for the survival package. Probably use the data > function to retrieve it, and write it out using the write.table function. > -- > Sent from my

Re: [R] Post for R

2017-05-31 Thread Hasan Diwan
Carrie, I would suggest a few things before posting your code here: - Put a dput(df) - Format it properly, as it stands it won't compile, because you're missing newlines/semicolons between, e.g. Z <- list()*; *G <- list(); for (i in length(L1)){ Z=data.frame(L1[i])*;* G <- split(Z$submax,"0.02")*;

Re: [R] train function in caret package

2017-05-20 Thread Hasan Diwan
A dput of your data may be helpful, Elahe? -- H[ On 19 May 2017 at 16:56, Elahe chalabi via R-help wrote: > Any answer?! > > On Friday, May 19, 2017 6:33 AM, Elahe chalabi via R-help < > r-help@r-project.org> wrote: > > > Hi all, > > I'm running train function from caret package on my data

Re: [R] RJDBC

2017-05-02 Thread Hasan Diwan
Anthony, Did you try options(java.parameters = "-Xmx8g -Djava.oracle.jdbc.timezoneAsRegion=false") instead of specifying the java property separately? -- H On 2 May 2017 at 15:18, Nelson Anthony wrote: > Hi all, > > > > I am trying to connect to Database using RJDBC but due to some DB & Server

Re: [R] Multiple Histograms in R

2017-04-19 Thread Hasan Diwan
Prateek, I'm shocked this isn't answered previously, but you can try the par command (mfrow and mfcol parameters) and par(mfrow=n, mfcol=m) will generate n plots per row and m rows per column. For subsequent questions, please do a search through the archives before asking. -- H On 19 April 2017 at

Re: [R] package ‘xlsx’ is not available (for R version 3.2.3)

2016-02-13 Thread Hasan Diwan
install.packages('xlsx', type='source', repos='http://cran.rstudio.com') should sort you. -- H On 13 February 2016 at 09:42, papa legba wrote: > Hi, > Does anyone have any idea how to work around this ? > package ‘xlsx’ is not available (for R version 3.2.3) > > To make xlsx work for 3.2.3 ? > >

Re: [R] R-help mailing list activity / R-not-help?

2016-01-25 Thread Hasan Diwan
On 25 January 2016 at 13:13, Duncan Murdoch wrote: > On 25/01/2016 3:33 PM, Hasan Diwan wrote: > >> There exists a fine line between being unintentionally rude, but helpful >> and purposely putting someone down. -- H >> > > I'm afraid I don't think your po

Re: [R] R-help mailing list activity / R-not-help?

2016-01-25 Thread Hasan Diwan
There exists a fine line between being unintentionally rude, but helpful and purposely putting someone down. -- H On 25 January 2016 at 12:07, Duncan Murdoch wrote: > On 25/01/2016 2:45 PM, Oliver Keyes wrote: > >> I disagree, and would argue that fails to take a systemic view of this >> kind of

Re: [R] QuantMod and XML

2015-11-07 Thread Hasan Diwan
Bob, On 7 November 2015 at 15:27, Robert Sherry wrote: > > I am trying to use the package quantmod to get option quotes in R. > Therefore, I executed the following two commands: > library ("quantmod" ) > getOptionChain("AAPL") > The first one worked but the second one produced th

Re: [R] Distance in miles btw Zipcodes

2015-09-18 Thread Hasan Diwan
Farnoosh, Please add your data by doing a dput(sample(data)) and we'll be able to help you further. -- H On 17 September 2015 at 15:36, Farnoosh Sheikhi via R-help < r-help@r-project.org> wrote: > Hello, > I'm trying to get the distances between two Zipcode variables, but for > some reason I get

Re: [R] How to download this data

2015-08-25 Thread Hasan Diwan
If there's no api available, I would use selenium to grab what I need and pipe it to R. Let me know if you need further assistance. Cheers! -- H On Aug 25, 2015 11:12 AM, "Christofer Bogaso" wrote: > Hi, > > I would like to download data from below page directly onto R. > > > http://www.nseindia.

Re: [R] converting Twitter data from txt file

2015-04-22 Thread Hasan Diwan
On 22 April 2015 at 13:05, Erin Hodgess wrote: > Hello! > > Someone gave me a text file of Twitter data to look at. I've used the > twitter package to do the actual downloading and getting the data into nice > R form. > > Is anyone familiar with a function to convert the twitter text into that >

Re: [R] How many digits are there in left of dot of 0.0001 ?

2015-02-25 Thread Hasan Diwan
answer I want would be 1 , > > -Original Message- > From: "Hasan Diwan" [hasan.di...@gmail.com] > Date: 02/25/2015 09:28 PM > To: "R Project Help" > Subject: Re: [R] How many digits are there in left of dot of 0.0001 ? > > On 25 February 2015 at 1

Re: [R] How many digits are there in left of dot of 0.0001 ?

2015-02-25 Thread Hasan Diwan
On 25 February 2015 at 17:55, ce wrote: > Dear all, > > I would like to count how many digits are there on the left of a the dot > of a numeric variable > Left? An infinite number... What does this have to do with R, though? -- H > > a=0.0001 > > thanks > > _

Re: [R] how to draw paired mosaic plot?

2015-02-06 Thread Hasan Diwan
The stats package has a mosaicplot function. Perhaps that would help? -- H On 6 February 2015 at 03:46, meng wrote: > Hi all: > If there are two numeric variable:x,y, and I can get paired scatter plot > by function "pairs".But if x and y are character, and I want to get paired > mosaic plot,whic

[R] Yodlee CRAN package

2015-01-13 Thread Hasan Diwan
Does anyone know of a CRAN package to access Yodlee.com's Aggregation API[1]? Many thanks -- H -- OpenPGP: https://hasan.d8u.us/gpg.key Sent from my mobile device Envoyé de mon portable 1. http://developer.yodlee.com/Aggregation_API [[alternative HTML version deleted]] _

Re: [R] Fitting a Tweedie distribution

2015-01-02 Thread Hasan Diwan
The tweedle package[1] claims to have "functions for computing and fitting the Tweedie family of distributions". Hope that helped. -- H 1. http://cran.r-project.org/web/packages/tweedie On 2 January 2015 at 10:33, Paul Hudson wrote: > Hello all, > > I want to fit a tweedie distribution to the da

Re: [R] see rcurl contents before they're sent?

2014-11-20 Thread Hasan Diwan
RCurl has a verbose switch, which may be set as follows: response <- postForm(getUpdateURL(),.opts = list(postfields = '{"delete": {"query":"*:*"}}',httpheader = c('Content-Type' = 'application/json',Accept = 'application/json', *verbose = TRUE*) # emphasis mine On 20 November 2014 16:16, Mark Mi

Re: [R] Problem with assignment 1 part 1

2014-08-10 Thread Hasan Diwan
We can try, but we're not going to be able to do much without the code being pasted in the email. -- H On 10 August 2014 19:08, michelle maurin wrote: > I think my code is very close I can seem to be able to debug it Might be > something very simple I know the problem is on the last 3 lines of

Re: [R] how to remove outliers

2014-07-14 Thread Hasan Diwan
Marta, To remove a row from your data frame, use: value <- 14478.4 time <- time[-time[$TimeDiff] == value,] I hope that helps... If not, do push back. -- H On 14 July 2014 09:17, Marta valdes lopez wrote: > Hi! > > I did this test and I got this outlier that i would like to remove the > whole

Re: [R] gumbel distribution

2014-05-14 Thread Hasan Diwan
Eliza, See the gamlss package's Gumbel distribution[1], where you will find your solution. OTOH, why does GAMLSS duplicate what's built-in to R? -- H 1. http://artax.karlin.mff.cuni.cz/r-help/library/gamlss.dist/html/GU.html On 14 May 2014 09:16, wrote: > The Weibull and Gumbel distributions ar

[R] Help required for using the prettyTree() to plot a regression tree graphically.......!!!!!!

2014-02-09 Thread Nasim Hasan
Dear All, I am Nasim Hasan a CS Student of New Mexico State University(NMSU). I am using R for my course work on the topics of Big-Data. My OS is Windows Seven and I using R's windows version of 3.0.2 along with the R-Studio of version 0.98.495. The problem is

Re: [R] Off-topic? Linux laptop for R

2013-08-11 Thread Hasan Diwan
Any laptop that performs well with Linux will perform acceptably with R and vice versa. -- H On 11 August 2013 11:03, Mitchell Maltenfort wrote: > Can anyone recommend a laptop that performs well running R under Linux? > Thanks. > > [[alternative HTML version deleted]] > > _

Re: [R] KalmanForecast (stats)

2013-07-01 Thread Hasan Diwan
On 1 July 2013 19:24, Giovanni Petris wrote: > Could you send me a simple example of KalmanForecast (with input data) that I > can run and can see how it works exactly? There's an explanation of the Kalman Filter available at http://www.swarthmore.edu/NatSci/echeeve1/Ref/Kalman/ScalarKalman.html

Re: [R] Manhattan Plot

2013-04-27 Thread Hasan Diwan
Just because it is possible to make a plot, doesn't mean it's a good idea. It would depend on what you're trying to show. -- H On 27 April 2013 17:21, lw...@yahoo.com wrote: > Hi, Tenfei, I have two group of data composed of gene mutation and > deletion on specific sites. Will it be possible f

Re: [R] Spider Plot

2013-04-19 Thread Hasan Diwan
install.packages('psych', repos='http://cran.rstudio.com', dep=TRUE) require(psych) spider(y=1,x=2:9,data=Thurstone) On 19 April 2013 22:29, XINLI LI wrote: > Does any one have a sample code for a Spider Plot as attached? > > Thanks, > > Xing > > __

Re: [R] how to change "`Year_Month)201103`" into "Year_Month)201103" using R?

2013-03-14 Thread Hasan Diwan
On 14 March 2013 01:56, Marc Girondot wrote: >> cat(gsub("`", "", x)) might want to add fixed=TRUE to the gsub line. -- Sent from my mobile device Envoyait de mon portable __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-he

[R] Fwd: some questions about ARIMA and FARIMA

2013-03-12 Thread Hasan Diwan
Sara, On 11 March 2013 18:26, cyl123 <505186...@qq.com> wrote: > I have some quesions about about ARIMA and FARIMA: Looks like they're all answered in the PDF for fArma[1]. -- Sent from my mobile device Envoyait de mon portable 1. http://cran.r-project.org/web/packages/fArma/fArma.pdf

Re: [R] Converting Date to Unix Time

2013-02-01 Thread Hasan Diwan
Mr Isella, On 1 February 2013 05:37, Lorenzo Isella wrote: > How can I convert that into Unix time? format.POSIXct(dateCol, '%s'); -- H -- Sent from my mobile device Envoyait de mon portable __ R-help@r-project.org mailing list https://stat.ethz.ch/m

Re: [R] whats wrong in my codes???

2012-12-24 Thread Hasan Diwan
Eliza, On 24 December 2012 08:34, eliza botto wrote: > > Dear R family,i am trying to plot and save, simultaneously, about 1000. > the name of each plot is contained in "names" file. when i run this loop, i > get an error. > "Error in plot.new() : Unable to open file > 'C:/R/SAVEHERE/myplot_Ta

Re: [R] Java Exception error while reading large data in R from DB using RJDBC.

2012-11-01 Thread Hasan Diwan
On 1 November 2012 11:47, Hasan Diwan wrote: > Sir, > > On 30 October 2012 04:32, aajit75 wrote: >> >> Please suggest where am i going wrong or alternate option to solve such >> issues while reading large DB table. >> > > You might consider setting th

Re: [R] Java Exception error while reading large data in R from DB using RJDBC.

2012-11-01 Thread Hasan Diwan
Sir, On 30 October 2012 04:32, aajit75 wrote: > > Please suggest where am i going wrong or alternate option to solve such > issues while reading large DB table. > You might consider setting the fetch size. I haven't used RJDBC in a few months, but hopefully, the hints on http://www.rforge.net/

Re: [R] Convert COLON separated format

2012-10-08 Thread Hasan Diwan
Mr Silverman, On 9 October 2012 00:56, Noah Silverman wrote: > I have a bunch of data sets that were created for the libsvm tool. They > are in "colon separated sparse format". > Is there a simple way to do this? > Use read.table with a sep of ':' and let me know how you get on. -- H -- Sent

Re: [R] Update CSV file content

2012-10-08 Thread Hasan Diwan
Mr Akkara, On 8 October 2012 05:20, Rantony wrote: > > Here i have a csv file, it contain like this > > NAME UPDATED > - -- > ABCINDIA > XYZ UK > > My requirement what is, i need to change the value inside the csv file > (instead of INDIA i need to make it

Re: [R] Broken Links on http://www.r-project.org

2012-10-04 Thread Hasan Diwan
The R Graphics Gallery has moved to http://gallery.r-enthusiasts.com/ and there's another R Graphics Manual at http://rgm2.lab.nig.ac.jp/RGM2 -- H On 26 September 2012 04:56, Viechtbauer Wolfgang (STAT) < wolfgang.viechtba...@maastrichtuniversity.nl> wrote: > I was not sure who I should contact a

Re: [R] Class for time series

2012-10-04 Thread Hasan Diwan
Mr. Emmanuel, On 4 October 2012 02:43, Poizot Emmanuel wrote: > Dear all, > > I have a time serie dataset such as the following with data acquired every > 15 minutes: > > DateHeure Profondeur Température Salinité Turbidité Chloration > 1 2012-07-06 08:47:22 -0.144 22.4690.011

Re: [R] Mac Text editors

2012-09-27 Thread Hasan Diwan
On 27 September 2012 09:26, peter dalgaard wrote: > (I gather that .emacs functionality ends up in > ~/Library/Preferences/Aquamacs\ Emacs/* . You're not really expected to > bypass the menus, though.) > ~/.emacs, same place as on Linux. -- Sent from my mobile device Envoyait de mon portable

Re: [R] add lowess predicted line to scatter plot

2012-09-24 Thread Hasan Diwan
Instead of attachments, put the out On 24 September 2012 01:58, Maximilian Lklweryc wrote: > Hi, > I have a scatter plot of the variables GNI and Lifeexp (Gross National > Income and Life Expectancy, both metric). So I plotted them and I want to > add a regression line and a lowess line. I use lo

Re: [R] how to save a heatmap.2 in png /jpeg /tiff

2012-09-09 Thread Hasan Diwan
Mr Stadler, On 9 September 2012 10:36, Fred wrote: > But I don't have any files called "heatmap.2.png " on my computer. > I really don't understand why I don't get anything ! > What does getwd() print out as a path? Check there for the your file. -- H -- Sent from my mobile device Envoyait de

Re: [R] How can I export a big data.frame to excel 2010 - file.xlsx?

2012-09-04 Thread Hasan Diwan
Ms. Botrel, On 4 September 2012 13:52, PamelaBotrel wrote: > I need some help to export a data frame with 83 rows and 1411 colums. I > have > used the package RODBC until now. But now, I have 1411 colums that I can't > send to the old excel. If anybody knows a package to convert my data frame >

Re: [R] Loading Chess Data

2012-09-02 Thread Hasan Diwan
Mr Arnold, > What would be the most efficient way to load the data at the following >> address into a dataframe? >> > To what end? In other words, what are you trying to achieve with the ratings list? -- H -- Sent from my mobile device Envoyait de mon portable [[alternative HTML version

Re: [R] to clear combobox value....

2012-08-26 Thread Hasan Diwan
Punitha, On 26 August 2012 02:43, punitha wrote: > but i am not knowing what should be written in the command function of a > button, so that the selected value of combobox should be cleared or come > back to its default value > http://www.tkdocs.com/tutorial/widgets.html there's code here

Re: [R] How to write % in pie chart?

2012-08-12 Thread Hasan Diwan
Post yer code and I'd be happy to take a look. On Aug 11, 2012 10:57 PM, "Manish Gupta" wrote: > HI, > > I am plotting one pie chart and need to write % inside it. How can i write > % > inside it as show in figure below. > > http://r.789695.n4.nabble.com/file/n4640078/pie_chart.png > > Regards >

Re: [R] How to extract unique indices for time series Data?

2012-07-28 Thread Hasan Diwan
> > Here, I guess there are some duplicated dates-index. Is there any > function available to automatically extract unique indices ??? > ?zooreg should do what you want, if I'm understanding the question properly. -- Sent from my mobile device Envoyait de mon portable [[alternative HTML

Re: [R] Format Date with Time

2012-07-16 Thread Hasan Diwan
Ms Vogric, as.POSIXct should be able to help there... On 16 July 2012 06:40, Jessica Streicher wrote: > ?Date > ?POSIXct > > and here you can find the formatting symbols: > http://stat.ethz.ch/R-manual/R-patched/library/base/html/strptime.html > > > On 16.07.2012, at 15:26, Lauren Vogric wrote:

Re: [R] changing the x axis labels in a time series plot

2012-07-14 Thread Hasan Diwan
Alternatively: require(xts) z.xts <- xts(cbind(1:100, 100:1), order.by=strptime(1322:1421, '%Y') plot(z.xts) -- H > Em 14-07-2012 10:54, Jim Bouldin escreveu: > > OK, this has to be simple but I've searched through help files, mailing >> list archives and well, everything I could think of, and st

Re: [R] (no subject)

2012-07-03 Thread Hasan Diwan
On 3 July 2012 22:03, Akhil dua wrote: > and I need to run a seperate regression of every stock on market > so I want to write a "for loop" so that I wont have to write codes again > and again to run the regression... > 1. Do give a subject line -- a blank one is commonly used by a virus. 2. I

[R] Rjava on Ubuntu quantal

2012-05-14 Thread Hasan Diwan
I just upgraded to Ubuntu Quantal from Precise and RJava stopped working, log follows: 0}% /usr/bin/find $HOME/workspace/FinanceOCR/visualizations/ -name '*R' -print | /usr/bin/xargs -n 1 -i% /usr/bin/Rscript % $1 [~] Loading required package: RJDBC Loading required package: methods Loading require

Re: [R] difficulty in Formatting time series data

2012-04-22 Thread Hasan Diwan
Raghu, On 22 April 2012 09:53, Raghuraman Ramachandran wrote: > I have a data frame (from CSV file) which has its first column called Date. > The Date is in the format mm/dd/. I was trying to get the weekday for > these dates and I tried using wday() and day.of.week() functions and both > of

Re: [R] how to divide data by week

2012-04-13 Thread Hasan Diwan
Stefano, On 13 April 2012 20:51, Stefano Sofia wrote: > I have a data frame as below specified. > From the 1st of May to the 30th of September of several years (e.g. from > 2004 to 2011) I have a frequency of accidents. > I need the mean of accidents divided by weeks (i.e. the mean of accidents >

[R] Most efficient way to do this...

2012-04-09 Thread Hasan Diwan
I have time-series data looking like this: > dataIn[sample(c(1:nrow(dataIn)), 25),] accelerometer_y id data_block_epoch_time 782 0.8424 201300 133179733 1868 0.3432 202386 1331797384000 1828 0.3510 202346 1331797382000 1026 0

Re: [R] Finding Instances of a Pattern Throughout Data Set

2012-04-02 Thread Hasan Diwan
Mr Gunter, On 2 April 2012 21:15, Bert Gunter wrote: > I strongly suggest you consult with a local statistician. Your > description is far too vague (to me anyway) to make any sense of and > probably requires a good deal of back and forth between you and a > competent data analyst to pin down wha

[R] Finding Instances of a Pattern Throughout Data Set

2012-04-02 Thread Hasan Diwan
I have approximately 2.5 million rows from a number of sensor readings. Having plotted these, I can see a given pattern (say a spike in the amplitude away from the mean). I would now like to automate this procedure as we're expecting a great deal more data in the near future. Is there any package o

Re: [R] Format wanted...

2012-03-25 Thread Hasan Diwan
Duncan, On 25 March 2012 15:28, Duncan Murdoch wrote: > In case anyone is interested, I want to output code in a language (GLSL) > that sees 1 and 1. as different types.  I want a floating point value, so I > need the decimal point. GLSL, assuming it's the one that I'm looking at[1], supports im

[R] ggmap crash

2012-03-16 Thread Hasan Diwan
Not sure if this is the right place to report this, but: Am using ggmap to generate a map of a bounding box from 161 latitude/longitude pairs and the code crashes R (in ess). Data is at http://analysis.d8u.us/~hdiwan/plotSource.csv and the code to read it is below. I'm not sure if ess, emacs, ggma

[R] KalmanSmooth

2012-03-07 Thread Hasan Diwan
I have a bunch of clean timeseries data obtained from a sensor and I'd like to apply a Kalman Filter to it to smoothe it out. Through a few days of Googling, reading papers, implementing such a filter in various languages, I finally realised that it may be built into R. So I did a "??kalman" at the

Re: [R] help updating package rJava (on ubuntu)

2012-02-18 Thread Hasan Diwan
On 18 February 2012 13:13, Karl Brand wrote: > Thanks for yout fast response. Thing is - i managed to get Version 0.9-1 > installed and fully functional. And > > $ locate jdk > returns too many entries to post here, so i'm pretty sure its on the > machine. What you want to look for is javac, not

Re: [R] still need read.zoo command help

2012-02-17 Thread Hasan Diwan
Henry, You're reading a CSV with read.zoo. This is not likely to work. The way I'd do this is: data <- read.csv('/tmp/Kevin-0-comma-ITPower.txt', header=FALSE) z <- zoo(data[,2], order.by=as.POSIXct(data[,1], format='%d/%m/%y %H:%M:%S') # or whatever your format actually is... -- H Sent from my mo

Re: [R] time series interpolation - zoo? approx? spline? what to use?

2012-02-16 Thread Hasan Diwan
Sir, On 16 February 2012 16:55, Henry wrote: > Please see my question from a few minutes ago - I wanted to improve the > title. xts über alles -- H -- Sent from my mobile device Envoyait de mon portable __ R-help@r-project.org mailing list https://sta

Re: [R] Spline Question

2012-02-14 Thread Hasan Diwan
Rolf, On 14 February 2012 21:26, Rolf Turner wrote: >    What did you actually *do* to create your spline? >    Did you use spline() or splinefun()?  And if not, why not? Yes... I used the spline() function to get a list of points that should go though every point in the dataset, but it does not

[R] Spline Question

2012-02-14 Thread Hasan Diwan
> dput(sensor.sample) structure(c(1328565718.65, 1328566608.9, 1328566162.65, 1328566571.1, 1328566598.85, 1328565634.3, 1328566513.95, 1328565123.65, 1328565827.1, 1328566719.9, 1328565527.55, 1328565118.05, 1328565556.85, 1328565623.85, 1328565230.75, 1328566083.85, 1328566012.45, 1328566795.75,

Re: [R] only 0s may be mixed with negative subscripts

2012-02-13 Thread Hasan Diwan
On 13 February 2012 14:46, ilai wrote: > The function you posted runs without error (on these 6 lines), but > does not return anything that looks remotely like a sum, or cumsum of > anything. Can you clarify what you are trying to do? I assume by "sum > of every other row" you don't mean summing T

[R] only 0s may be mixed with negative subscripts

2012-02-13 Thread Hasan Diwan
I'd like to get the sum of every other row in a data.frame. When I actually set about doing this, I get the error in the subject line of this message. A sample of my data is below, followed by the function call that should give me the results I want: > dput(head(sens2)) structure(list(Time = c(132

Re: [R] Scriptable Integration

2012-02-10 Thread Hasan Diwan
Michael, On 10 February 2012 18:11, R. Michael Weylandt wrote: > I'm not quite sure what you mean, but perhaps this will help: > spf <- splinefun(mydata$V2) > splInt <- function(low, up) integrate(spf, low, up)$value Sort of, I'm looking to get the nth order integral, where the only thing I know

[R] Scriptable Integration

2012-02-10 Thread Hasan Diwan
My data: > dput(mydata) structure(list(V1 = c(1328565067, 1328565067.05, 1328565067.1, 1328565067.15, 1328565067.2, 1328565067.25), V2 = c(0.0963890795246276, 0.227296347215609, 0.240972698811569, 0.221208948983498, 0.230898231782485, 0.203282153087549), V3 = c(0.0245045248243853, 0.083567941170357

  1   2   >