[R] point in polygon dataframe data

2016-11-02 Thread Indhira, Anusha
Hi , I have polygon vertices as given below ft_num dv_ft dp30_mn_phase dv_n2 p30_mn_phase tgt_mn_phase n2_binfuel_mnepr_mn min_dp30_mnp 19 28 zero-gradient -0.0006680832 transient 34.76701 493.6494 g75 304.56411 0.9593899 -0.0006680832 18 28

[R] lsa-cosine subscript out of bounds error

2016-10-28 Thread Indhira, Anusha
Hi, I have created a document term matrix from corpus.I would like to apply Cosine similarity to find similar documents,when I apply cosine(w.mt) I get " Error in x[,i] : Subscript out of bounds" Can anyone let me know how to overcome this error? Thanks, alily This e-mail (including

[R] cosine similarity tf-idf

2016-10-28 Thread Indhira, Anusha
Hi, To find similar documents in a Corpus using cosine similarity, Is it necessary to calculate tf-idf weights while creating term document matrix or just term frequency is fine? Can anyone let me know what are advantages and disadvantages for both ways? Thanks, Anusha This e-mail (including

Re: [R] interpretation of plot.svm graph

2016-10-27 Thread Indhira, Anusha
Thanks for letting me know.Please find the image file in below link https://github.com/anushar/bleed-analysis/blob/master/svm_classification_plot.jpeg Thanks -Original Message- From: Jim Lemon [mailto:drjimle...@gmail.com] Sent: 26 October 2016 23:37 To: Indhira, Anusha Cc: r-help@r

[R] interpretation of plot.svm graph

2016-10-26 Thread Indhira, Anusha
Hi, I am trying to understand graph generated by plot.svm command. when I use model.svm <- svm(target.538 ~.,data = svm.data,type = "C-classification") plot(model.svm,svm.data,T~P,xlab="",ylab = "") I get attached graph.Can anyone let me know what red,bkack,green circle and cross points

Re: [R] using nested ifelse when i want to process values from more than 3 columns of data frame

2016-10-24 Thread Indhira, Anusha
ter or symbol", "' 0), \"all-false\", \"other\")))' is not a function, character or symbol" ) From: Indhira, Anusha Sent: 24 October 2016 12:56 To: 'r-help@r-project.org' Subject: using nested ifelse when i want to process values from more than 3 columns of data fra

[R] using nested ifelse when i want to process values from more than 3 columns of data frame

2016-10-24 Thread Indhira, Anusha
Hi, I would like to process each row of data frame having 8 columns of which I am interested in 4 columns for my analysis.I tried using apply function but I get syntax error,although I checked for missing syntaxes ,couldn't figure out the mistake.Can you also suggest me more efficient way to

Re: [R] need help in customising function in stat_summary function ggplot2

2016-10-21 Thread Indhira, Anusha
Thanks mark for pointing out my mistake and suggestion.I can get desired output now -Original Message- From: Mark Sharp [mailto:msh...@txbiomed.org] Sent: 20 October 2016 17:21 To: Indhira, Anusha Cc: r-help@r-project.org Subject: Re: [R] need help in customising function

[R] need help in customising function in stat_summary function ggplot2

2016-10-20 Thread Indhira, Anusha
Hi, I would like to print percentage of points in a group which are greater than median value in boxplot. I have tried below code but it always prints zero in the graph. Can you let me know, how to modify code to get desired result? perc.greaterthan.median <- function(x){ cnt = 0 for(i in