Re: [R] Parsing all rows & columns of a Dataframe into one column

2015-08-09 Thread PIKAL Petr
Hi Your HTML posting scrammbled your question a bit. If I understand correctly and as you want values of various type in one column, probably the easiest way would be. mat<-as.matrix(yourdata) mat<-na.omit(mat) dim(mat) <- NULL newdata <- data.frame(mat, stringsAsFactors=FALSE) Cheers Petr >

Re: [R] result NA , but expected True or False

2015-08-09 Thread David Winsemius
On Aug 9, 2015, at 8:45 PM, Ragia Ibrahim wrote: > Dear Group, > Kindly, > > I have those two lines > if( (z_nebla==0) || (z_nebla_dash==0) ) > CM <- 0 else > > CM <- 0.5 *(1/a) + 0.5*(1/b) > > when running it > > I got this > > z_nebla==0

[R] Plotting wind direction as arrows with precipitation

2015-08-09 Thread DJ L
Hello R users! I am trying to create a time series in R with two variables, precipitation and wind direction vs Date/Time. I am looking for suggestions and maybe even sample code. My workbook is called "Sandy" and has columns with Date/Time, Raindall_cm, Wind Direction in both degree format (0-3

[R] Parsing all rows & columns of a Dataframe into one column

2015-08-09 Thread Anshuk Pal Chaudhuri
Hi All, I am using R for reading certain values in a dataset. I have values in a data frame all scattered in different columns & rows, some values might be NA as well. e.g. below three columns V1, V2,V3, and their respective values. V1 V2 V2 NA NA 90 abc 89.09 $50 76799 N

[R] Data frame Q

2015-08-09 Thread Ragia Ibrahim
Dear Group, Kindly, I have the following Common_Friends <- intersect(node_neighbours_i_out,node_neighbours_j_out) class(Common_Friends) print(Common_Friends) #4 = Common_Friends newline<-c(i, Common_Friends ) df<- rbind(df,newline) I created a data fra

[R] result NA , but expected True or False

2015-08-09 Thread Ragia Ibrahim
Dear Group, Kindly, I have those two lines if( (z_nebla==0) || (z_nebla_dash==0) ) CM <- 0 else CM <- 0.5 *(1/a) + 0.5*(1/b) when running it I got this z_nebla==0) logical(0) > (z_nebla_dash==0) logical(0) > (z_nebla==0) || (z

Re: [R] inbuilt crossover function for backtesting

2015-08-09 Thread Joshua Ulrich
On Sun, Aug 9, 2015 at 3:46 AM, boredstoog via R-help wrote: > I am trying to built a simple moving average cross over strategy for > backtesting. I have installed TTR and quantmod, quantstrat for that purpose. > >From TTR package we can get functions for sma,bolinger band and other > indicators.

[R] inbuilt crossover function for backtesting

2015-08-09 Thread boredstoog via R-help
I am trying to built a simple moving average cross over strategy for backtesting. I have installed TTR and quantmod, quantstrat for that purpose. >From TTR package we can get functions for sma,bolinger band and other indicators. I want to know whether any inbuilt crossover function (not greater '>'

Re: [R] Automatically updating a WordPress blog from R

2015-08-09 Thread boredstoog via R-help
I dont know whether this will help you because even I am also pretty new to R but have some experience in web development. I would recommend you to read about "cron jobs" . cron jobs automate your request and execute according to your execution parameters (1 minute, 3.5 days etc) -- View this me

Re: [R] Installing RGDAL on CentOS v.6.2

2015-08-09 Thread Eric Brown
Dear Shouro, I should have mentioned that pkgsrc is cross-platform, and not restricted to the NetBSD OS. I use pkgsrc on my CentOS machines to provide up-to-date software. Since sysadmins tend to be conservative about what they will install on computers, I end up installing my own software

Re: [R] Recursive looping of a list in R

2015-08-09 Thread Gerrit Eichner
Hi Evans, not many people (incl. me) are going to guess the building law for your recursive structure from the -- in fact at first sight not so clear -- picture, but I have some comments inline below. Hth -- Gerrit I am trying to creat a list from a loop such that once you loop the value

Re: [R] Installing RGDAL on CentOS v.6.2

2015-08-09 Thread Shouro Dasgupta
Dear Eric, Thank you for your reply. Unfortunately, I don't have NetBSD on the cluster and considering the size of my dataset, I can't utilise my local machine. Does it make a difference that the R installed on the cluster is up-to-date if I do want to compile everything from tar.gz? Thanks again