Re: [R] save screen printed data frames and ggplots into a file

2016-01-01 Thread Ragia Ibrahim
nto it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Thu, Dec 31, 2015 at 4:46 PM, Ragia Ibrahim wrote: >> Dear group >> I have a script that prints data frames and plot using ggplot 2 while >> running, >> how can

[R] save screen printed data frames and ggplots into a file

2015-12-31 Thread Ragia Ibrahim
Dear group I have a script that prints data frames and plot using ggplot 2 while running,   how can I do this thanks in advance Ragia __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.et

Re: [R] R studio installation and running

2015-12-23 Thread Ragia Ibrahim
o play -- everything happens over http. And yes, this > conversation should definitely move to the rstudio support forum. > > Best, > Ista > >> -pd >> >> >>> On 23 Dec 2015, at 17:51 , Ragia Ibrahim wrote: >>> >>> >>> many thanks

Re: [R] R studio installation and running

2015-12-23 Thread Ragia Ibrahim
many thanks for your help its remote ubuntu server that I connect via Putty, and I install R and rstudio , now trying to make it run..but it doesnt..its only terminal..I will try the rstudio help mailing list as many of the list advice's me, many thanks prof for your help Ragia

[R] R studio installation and running

2015-12-22 Thread Ragia Ibrahim
Dear group I used to run Rstudio on windows. currently  I want to run Rstudio on Ubuntu server, start its GUI . kindly, is there a guide on how to do this step by step, I already searched and installed R .. but confused ..should I install Rstudio for desktop or server ? how to start it?, I am the

[R] splitting data frame into fixed rows depending on column rep

2015-12-06 Thread Ragia Ibrahim
Dear group, I have the following data frame             v1 v2  v3 v4 v5 1           1  3 1   3.5    1 2           1  4 3   3.5    1 3           1  8 3   3.5    1 4           2  9 8   2.5    1 5           2 10 9   2.5    1 6           2  6 3   1.5    1 7           3  4 3   2.0    1 8           3  

Re: [R] extract rows based on column value in a data frame

2015-12-02 Thread Ragia Ibrahim
s not knowledge. And knowledge >> is certainly not wisdom." >> -- Clifford Stoll >> >> >> On Wed, Dec 2, 2015 at 12:26 PM, David Winsemius >> wrote: >>> >>>> On Dec 2, 2015, at 10:09 AM, Ragia Ibrahim wrote: >>>> >>

[R] Extracing Unique Rows based on 2 Column

2015-11-29 Thread Ragia Ibrahim
Dear group, kindly,  I have a data frame, as follows:  Measure_id i j value      rank 1           1 2 3   2.0 1.000 2           1 5 1   2.0 1.000 3           1 2 1   1.5 0.750 4           1 5 2   1.5 0.750 5           1 7 3   1.5 1.000 6           1 2 4   1.0 0.500 7      

Re: [R] {non} linear model solving

2015-11-16 Thread Ragia Ibrahim
ct.org > To: ragi...@hotmail.com > > >> On Nov 16, 2015, at 4:01 PM, Ragia Ibrahim wrote: >> >> thanks for replying. >> >> the question about non linear model, I formed it incorrectly, I have a >> single objective multi constrain non linear model..I

[R] linear model solving

2015-11-15 Thread Ragia Ibrahim
Dear group IF I had an objective function and some constrains formed in linear model form. is there a way,..library in R that helps me to solve such amodel and find the unknown variable in it? thanks in advance Ragia __

[R] get maximum 3 rows by column elements in data frame

2015-11-09 Thread Ragia Ibrahim
Dear group, I have the following data freame dput(df_all_nodes) structure(list(Measure_id = c(1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1,  2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2,  3, 4, 5, 1, 2, 3, 4, 5), i = c(2, 2, 2, 2, 2, 2, 2, 2, 2, 2,  2, 2, 2, 2, 2, 4, 4, 4, 4, 4, 5, 5, 5, 5,

Re: [R] group by function

2015-11-07 Thread Ragia Ibrahim
not knowledge. And knowledge > is certainly not wisdom." > -- Clifford Stoll > > > On Sat, Nov 7, 2015 at 6:32 AM, Ragia Ibrahim wrote: >> Dear group, >> kindly, I have the following data frame >> >> structure(c(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,

[R] group by function

2015-11-07 Thread Ragia Ibrahim
Dear group, kindly, I have the following data frame structure(c(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1.5, 2, 1, 0, 2, 2, 1.5, 0, 0, 1, 1, 2, 0, 1, 2), .Dim = c(15L, 3L), .Dimnames = list( NULL, c("i", "Measure_id", "value"))) it has 3 c

Re: [R] kendall tau distance

2015-09-12 Thread Ragia Ibrahim
> David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77840-4352 > > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ragia Ibrahim > Sent: Thursday, September 10, 2015 12:40 PM > To: r-he

[R] kendall tau distance

2015-09-10 Thread Ragia Ibrahim
Dear group how to calculate  kendall tau distance according to  Kendall_tau_distance at wikipedia  https://en.wikipedia.org/wiki/Kendall_tau_distance   thanks in advance Ragia __ R-help@r-project.org mailing list -

Re: [R] groups Rank

2015-09-08 Thread Ragia Ibrahim
gt; > dat$rankvalue <- ave(dat$prob, paste(dat$id, dat$i), FUN = rank) > > But I am not sure if this is the desired result. > > Cheers > Petr > > >> -Original Message- >> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ragia >> Ibr

Re: [R] groups Rank

2015-09-07 Thread Ragia Ibrahim
provide data, rather than expecting people to >> open random attachments. Besides, there are multiple options for >> getting data into R, and we need to know exactly what you did. dput() >> is faster and easier. >> >> What have you tried? Did you look at aggregate

[R] dplyr question

2015-09-06 Thread Ragia Ibrahim
Dear group, I have the following data frame df Measure_id i j id value1 1 5 1 1 2.02 1 5 2 1 2.03 1 5 1 2 1.54 1 5 2 2 1.55 1 5 1 3 0.06 1 5 2 3 0.07 1 5 1 4 0.08 1 5 2 4 1.09 1

[R] groups Rank

2015-09-04 Thread Ragia Ibrahim
Dear Group,kinldy, I have the following data frame df id value1 1 4 2 1 4 3 1 6 4 1 6 5 2 1.5 6 2 2.5 7 2 2.5 8 2 2.5 add rank column regarding id coulmn where rank for the highest val

[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

[R] numeric of length 1

2015-06-22 Thread Ragia Ibrahim
Dear group, I have the following object > pr_sub$vector[1] 14 0.07782809 > class( pr_sub$vector[1]) [1] "numeric" > length( pr_sub$vector[1]) [1] 1 how can I separate pr_sub$vector[1] and get 14 only thanks in advance Ragia [[alter

[R] community

2015-06-15 Thread Ragia Ibrahim
Dear group working on a graph..I parse the graph node by node and create cluster for set of nodes..firstly the number of clusters are not knowen what kind of R object can I flexibly use as community, say I want M communities C1,C2..CM how can I define this ? thanks in advance Ragia

[R] most frequent value

2015-06-14 Thread Ragia Ibrahim
Dear group, I have the following integer object > a 3 4 6 3 3 6 how to get the most frequent value (it should be 3) and get nothing if no frequent one and all is equal 3 4 6 3 4 6 Thanks in advance Ragia [[alternative HTML version deleted

Re: [R] order matrix regarding its content.

2015-05-23 Thread Ragia Ibrahim
Many thanks > Date: Sat, 23 May 2015 11:55:07 +0200 > From: lig...@statistik.tu-dortmund.de > To: ragi...@hotmail.com; r-help@r-project.org > Subject: Re: [R] order matrix regarding its content. > > > > On 23.05.2015 11:10, Ragia Ibrahim wrote: > > Dear group, &

[R] order matrix regarding its content.

2015-05-23 Thread Ragia Ibrahim
Dear group, I have the following matrix 1 2 3 4 5 6 7 8 9 10 1 0 1 1 1 1 1 1 1 1 1 2 0 0 0 1 1 0 0 0 0 0 3 0 0 0 1 1 1 1 1 1 1 4 0 0 0 0 1 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 1 1 1 1 7 0 0 0 0 0 0 0 1 1 0 8 0 0 0 0 0 0 0 0 1 0 9 1 1 1 1 1 1 1 1 1 1 10 0 0 0 0 0 0 0 0

[R] matrix inf and zero's value replacement

2015-05-12 Thread Ragia Ibrahim
Dear Group, I have the following matrix m [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,]021 Inf Inf Inf Inf Inf [2,]102 Inf Inf Inf Inf Inf [3,]210 Inf Inf Inf Inf Inf [4,]3210 Inf Inf Inf Inf [5,] Inf Inf Inf Inf0 I

[R] get sub elements

2015-05-10 Thread Ragia Ibrahim
Dear group I have this numeric object allrecords 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 1 2 1 3 1 1 2 5 4 1 6 8 1 2 1 3 3 2 13 1 4 2 4 7 1 14 1 1 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 1 1

[R] get the first row ?

2015-05-10 Thread Ragia Ibrahim
Dear group kindly I have a logical data type ISINFCluster: 1 2 3 4 5 6 7 8 910111213 14 FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE 1516171819202122232425

[R] searchTwitter

2015-04-11 Thread Ragia Ibrahim
Dear group , I used the following code to download some tweets (1500) library(twitteR) library(ROAuth) library(plyr) library(stringr) library(ggplot2) ## Windows users need to get this file download.file(url="http://curl.haxx.se/ca/cacert.pem";, destfile="cacert.pem") requestURL <"https:/

[R] searchTwitter

2015-04-11 Thread Ragia Ibrahim
Dear group I used the following code to download some tweets (1500) library(twitteR) library(ROAuth) library(plyr) library(stringr) library(ggplot2) ## Windows users need to get this file download.file(url="http://curl.haxx.se/ca/cacert.pem";, destfile="cacert.pem") requestURL <"https://api.twit

[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

Re: [R] sort adjacency matrix_with data

2015-04-06 Thread Ragia Ibrahim
set.seed(4795) > mat <- matrix(sample(0:1, 24, replace = TRUE), nrow = 6) > mat > > inx <- order(rowSums(mat), decreasing = TRUE) > mat[inx, ] > > > Hope this helps, > > Rui Barradas > > Em 06-04-2015 18:18, Ragia Ibrahim escreveu: > > Dear group &

[R] sort adjacency matrix

2015-04-06 Thread Ragia Ibrahim
Dear group i have the following matrix 1 . . 1 . . 1 . . . . 2 . . . . . . 1 . . . 3 1 . . . 1 . . 1 . 1 4 . . . . . 1 . . . . 5 . . 1 . . . . . . 1 6 1 . . 1 . . . . 1 . 7 . 1 . . . . . 1 . . 8 . . 1 . . . 1 . . 1 9 . . . . . 1 . . . 1 10 . . 1 . 1 . . 1 1 . I want to sort it according

[R] creating matrix row by row

2015-03-28 Thread Ragia Ibrahim
Hi, I have a original adjacency matrix n X n , and I want to connect certain row with a set of other selected columns (could be not the same as in the original matrix). this in each iteration I have a new row of this connections matrix , how to create this matrix. having original row nu

[R] save program results and graphs to one file

2015-02-01 Thread Ragia Ibrahim
Dear group, I have many plots and numeric results in my R program, kindly how can I save them all sequently on one file. thanks in advance RAI [[alternative HTML version deleted]] __ R-help@r-project

[R] subscript out of bounds

2015-01-20 Thread Ragia Ibrahim
Hello, kindly , how to catch this Error Error in A[[i]] : subscript out of bounds and check that the list is empty is.null( A[[i]] ) do no twork thanks in advance R.I [[alternative HTML version deleted]] __

Re: [R] union empty set with an element

2015-01-19 Thread Ragia Ibrahim
y thanks for replying Regards R. > Subject: Re: [R] union empty set with an element > From: b...@xs4all.nl > Date: Mon, 19 Jan 2015 16:00:28 +0100 > CC: r-help@r-project.org > To: ragi...@hotmail.com > > > > On 19-01-2015, at 15:51, Ragia Ibrahim wrote: > > > >

Re: [R] union empty set with an element

2015-01-19 Thread Ragia Ibrahim
y thanks for replying Regards R. > Subject: Re: [R] union empty set with an element > From: b...@xs4all.nl > Date: Mon, 19 Jan 2015 16:00:28 +0100 > CC: r-help@r-project.org > To: ragi...@hotmail.com > > > > On 19-01-2015, at 15:51, Ragia Ibrahim wrote: > > > >

[R] union empty set with an element

2015-01-19 Thread Ragia Ibrahim
Hello, I started the program with an empty set then I add and element when needed. the problem how can I add the first element to the empty set union(set_name ,element) gives "subscript out of bounds " thanks in advance R. [[alternative HTML ver

[R] list of lists, is this element empty

2014-12-20 Thread Ragia Ibrahim
Hello, Kindly I have a list of lists as follow x [[1]] [1] 7 [[2]] [1] 3 4 5 as showen x[[3]] does not have a value and it has NULL, how can I check on this how to test if x[[3]] is empty. thanks in advance Ragia [[alternative HTML version dele

[R] data frame cumulative row sum

2014-12-08 Thread Ragia Ibrahim
Hi, Kindly I had a data frame looks like this x y 1 3 2 2 3 1 4 3 and I want to add column z that sum cumulativly like this x y z 1 3 3 2 2 5 3 1 6 4 3 9 how to do this? Regards Ragia [[alternative HTML version deleted]] ___

[R] Generate random numbers under constrain

2014-11-22 Thread Ragia Ibrahim
Dear all, I use R 3.1.1 for Windows. kindly how can I generate n number of random numbers with probability from [0,1] and their sum must not be more than one thanks in advance Ragia [[alternative HTML version deleted]]

[R] re arrange according to first positions

2014-08-28 Thread Ragia Ibrahim
Dear all, I have a data frame, where multible process and ordering done ..can I re arrange (re order ) it regarding it' s original ROW index ? how? example Xi items numrber_list_items 38 8, 7, 3, 44 27 7, 3, 40 1 10 10

[R] local and global variables

2014-06-21 Thread Ragia Ibrahim
Dear group I have some thing like the following code... ##start my_list (global object) function 1 { list1<-mylist function2(list1) function3(list1) function4(list1) } function2(list1) { assign values via <<- to the object items } function3(list1) { assign values via <<- to the object items }

[R] How to follow

2014-05-23 Thread Ragia Ibrahim
F Hi, An R function that should be run for about 50 000 times... during execution some data saved in data frame how can I view the progress of the function, even its counter..? there are print stamens inside the code but nothing show up till the end of the run !!! other thing, is there any

[R] select randomly from a list

2014-05-22 Thread Ragia Ibrahim
Hi, kindly I want to select randomly and item from list of items. the list generated in a looping process. I used sample(mylist,1) it works fine. BUTsome times the list have only one item. that should be chosen in this case since there is no other one. I found that sample return different item n

[R] data presentation -curve

2014-05-14 Thread Ragia Ibrahim
dear group, I had table of ages and their related frequancy. What data type can I use to reoresent ir? Can I plot it in curve ? thanks in advance ARE [[alternative HTML version deleted]] __ R-help@r-p

[R] Cure and data type

2014-05-14 Thread Ragia Ibrahim
Hi, I have a simple table of age and frequency What data type should I use to represent this kind of data in R, and kindly how can I plot it in a curve thanks in advance RAE [[alternative HTML version deleted]] ___

[R] variable length lisin in data frame

2014-05-10 Thread Ragia Ibrahim
Dear Group, I have data like the following id contacts_list number of contacts --- 1 3 4 2 2 1 3 43 34 2 1 3 411 -

[R] uniform number

2014-05-04 Thread Ragia Ibrahim
Dear group, How to generate uniform probability choosing p to be 2% and 5%, in separate trials for 100 times. thanks in advance RAE [[alternative HTML version deleted]] __ R-help@r-project.org mai

[R] how should the program looks like?

2014-02-19 Thread Ragia Ibrahim
Hi, I used to write C++ code. write what i want in a function ..pass pointers if i want to change the object real value... here i want to ask in R, igraphshould i write the script as lines without functions..to change graph attributes or edges attributes or some values of the nodes