[R] searchTwitter with unicode- UTF8

2015-04-10 Thread Ragia Ibrahim
Dear group I uses 'searchTwitter' to get users tweets it works for English words such as (iphone) but when working with Arabic text example searchTwitter(�) it gave me the following Error Error in twInterfaceObj$doAPICall(cmd, params, GET, ...) : Error: Forbidden my questions are

Re: [R] recursively rename dir and files

2015-04-10 Thread mbressan
hi jim thank you very much for your help: what a nice piece of code! inspired by your neat solution let me here post a slight variation upon your lines which is now also dealing also with caps in file and dir names (a potentially useful function for the proper housekeeping of the wd) it works

[R] Question on CCA and RDA analysis

2015-04-10 Thread Luis Fernando García
Dear R experts, I wanted to know if you can suggest me any website or tutorial just to learn about how to make a RDA or CDA in R Thanks in advance! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

[R] multiple input files single output - lapply? - pls advise

2015-04-10 Thread B Dittmann
Dear R users, hope you can point me in the right direction. I am stuck with the following problem. My function f1 reads csv files, manipulates them into the right xts format and returns the output at the end. This works perfectly fine. Now, I need to run f1 over a long list of various csv files,

[R] Finding values in a dataframe at a specified hour

2015-04-10 Thread Alexandra Catena
Hello, I have a large dataframe (windHW) of wind speeds (ws) at each hour from many days over a set of years. Some of these values are obviously wrong (600 m/s) and I want to get rid of all the values that are larger than 5*sigma for each hour. The 5*sigma (variable name sigma5) values are

[R] How to complete this code

2015-04-10 Thread Mahdiyeh Erfaniyan
Hi, Consider the line below: for(r in a)for (s in a) x=rbind(x,apply(replicate(1000,V(r,s)),1,mean)) V is a vector of (n-1) variables calculated by some rule and is a functions of (r,s). So the line above produces 1000 replicates of V for each (r,s), puts them in a matrix, calculates the

Re: [R] Finding values in a dataframe at a specified hour

2015-04-10 Thread Alexandra Catena
Update: I have this so far. * The first column of windHW is the wind speed. The 5th column of the dataframe, spring, is the 5*sigma value of every hour. hourRow gives out all the rows of wind speed at a given hour. for (i in 0:23){ hourRow = which(windHW$hour==i,arr.ind=TRUE) for (h in

Re: [R] Removing words and initials with tm

2015-04-10 Thread Jim Lemon
Hi Sun, No, I was thinking of something like hunspell, which seems to fit into the sort of work that you are doing. Jim On Fri, Apr 10, 2015 at 11:42 PM, Sun Shine phaedr...@gmail.com wrote: Thanks Jeff. I'll add that to the ever-growing list my current studies are generating daily. :-)

Re: [R] Finding values in a dataframe at a specified hour

2015-04-10 Thread Jim Lemon
Hi Alexandra, The error probably comes from the first iteration of i in 0:23. As indexing in R begins at 1, there is no element 0. Try using: for(i in 1:24) { ... and see what happens. Jim On Sat, Apr 11, 2015 at 7:06 AM, Alexandra Catena amc5...@gmail.com wrote: Update: I have this so

Re: [R] Finding values in a dataframe at a specified hour

2015-04-10 Thread Alexandra Catena
Hi Jim, Thanks for the response, but unfortunately it results in the same error. I think it is something wrong with the if statement. I tried it out manually for the first row and hour that it's testing and indeed, the wind speed is not higher than the 5*sigma value. Since it is not higher

Re: [R] Question on CCA and RDA analysis

2015-04-10 Thread Ben Bolker
Luis Fernando García luysgarcia at gmail.com writes: Dear R experts, I wanted to know if you can suggest me any website or tutorial just to learn about how to make a RDA or CDA in R Thanks in advance! I hate to ask, but did you try Googling canonical correspondence analysis R ...

Re: [R] Question on CCA and RDA analysis

2015-04-10 Thread Luis Fernando García
Yeah, The most useful example I found was this. https://gist.github.com/perrygeo/7572735. I always had the idea of this kind of forums was to provide sources not so obvious in the web. If you have something better it would be great. 2015-04-10 18:36 GMT-03:00 Ben Bolker bbol...@gmail.com:

Re: [R] Finding values in a dataframe at a specified hour

2015-04-10 Thread Jim Lemon
Hi Alexandra, I answered too quickly. Your response made me look for a deeper error: The value of i doesn't matter, as it isn't being used as an index. However, the first value of i=0 may cause the error in the second loop, where h is used as an index. for (i in 0:23){ hourRow =