[R] Importing data with value labels into R

2022-11-14 Thread Maryam Iraniparast
Hello! I want to read SPSS data into R and I want to carry the value labels with my dataset. Based on my research, only Stata file can transfer the value labels to R (It is easy to save SPSS data with Stata format). The last time I did that successfully, I was using R4.2.1 and the following cod

[R] "igraph0" package installation

2018-07-05 Thread Maryam R via R-help
Hi, I’m maryam that ask question about "igraph0" package installation in R-help. I thank you for your answering. i used and install “igraph” library in R but i faced with below error when I use this command : results <- gspan(database) Error: Error in library(igraph0) : there

[R] "igraph0" package installation

2018-07-05 Thread Maryam R via R-help
rce",repos=NULL, dependencies=TRUE) | | | | Index of /src/contrib/Archive/igraph0 | | |  but I face with below error. Please help me: ERROR: compilation failed for package 'igraph0'* removing 'C:/Users/Maryam/Documents/R/win-library/3.4/igraph0'In R CMD INSTALLWarni

[R] Please help with creating the improved image with pheatmap package

2016-10-03 Thread maryam moazam
ed image is attached. Please take a look at it. As you could see, the image quality is not good, in fact, the label of each row has not been appropriately shown at all in the picture. Could you please help me how I can modify the code to improve the image? Thank you very much in advance

[R] Fwd:

2016-01-20 Thread maryam firoozi via R-help
el it? Sent from my iPhone Begin forwarded message: > From: maryam firoozi > Date: January 18, 2016 at 1:14:56 AM GMT+3:30 > To: r-help@r-project.org > > hello, > we want to do genomic blup in r.i know that use pedigree package. > the formule is > gblup( P~1,data=ped[,c

[R] (no subject)

2016-01-19 Thread MARYAM
Dear mr/madam I have 3 matrix with 20 rows and 3 columns like this: I want to sample randomly from three matrix and put it in a vector.How can i do that? Young.list1<- matrix(NA,nrow= 20,ncol=3) Young.list1[,1]<- 1:20 Young.list1[,2]<- 0.6 Young.list1[,3]<- 500 colnames(Young.list1)<- c("ID","r",

[R] (no subject)

2016-01-17 Thread maryam firoozi via R-help
hello, we want to do genomic blup in r.i know that use pedigree package. the formule is gblup( P~1,data=ped[,c('ID','P')],M=M,lambda=1/h2-1) P:phenotype variance ped:pedigree M: matrix marker or genotype my ped has 4500 ID.but my M has 9000 individual.becasue i have two row for each ID in M matrix

[R] for loop

2016-01-12 Thread maryam firoozi via R-help
Dear mr/madam I want to mak a matrix with 10 row and 3 column . this matrix is pedigree. my input sire<- c(1,2,3,4,5) count<- 0 sire<- cbind(sire,count) dam<- c(1,2,3,4,5,6,7,8,9,10) ped<-mstrix(NA,nrow=10,ncol=3) for(i in 1:10){ Sire<- sample(sire[,1],1) a<- which(sire[,1]==Sire) if(a){sire[a,2]

Re: [R] Combining dataframes with different row numbers and plotting with ggplot2

2016-01-09 Thread maryam moazam
me more on this? Thanks in advance, Maryam On Sat, Jan 9, 2016 at 5:38 PM, Michael Dewey wrote: > Dear Maryam > > If you just need all the values of size would > c(df1$size, df2$size) > work? > > On 08/01/2016 21:44, maryam moazam wrote: > >> Dear Sir / Madam,

[R] Combining dataframes with different row numbers and plotting with ggplot2

2016-01-08 Thread maryam moazam
Dear Sir / Madam, I have just come to the amazing R software, so please be patient if my question is basic for you. I have 2 text file (say 1.txt and 2.txt), each file containing 2 columns and different row numbers, like below case size case1 120 case2 120 case3 121 case4 121 case5 121 case6 122

[R] using index.treated/control

2015-01-08 Thread Maryam Yahiaoui-Doktor
es I get from my data frame if I use the index number pairs. So, the question is about how to identify these rows. If the first two values from index.treated and index.control are 1 & 44, are these row numbers in my original dataframe? Thanks in advance. Maryam [[alternative HTML

[R] Fwd: the properties of a DATA to run DBSCAN in R

2014-09-15 Thread Maryam Heidari
hello everybody, I have been trying to run "dbscan" algorithm on my data, my data round 4 records which each of them has 3 attributes + plus the ID for each record. the interesting thing is that when I run the "dbscan just on 3 attributes" R gives me an ERROR regarding "stackoverflow" but when

[R] the properties of a DATA to run DBSCAN in R

2014-09-15 Thread Maryam Heidari
hello everybody, I have been trying to run "dbscan" algorithm on my data, my data round 4 records which each of them has 3 attributes + plus the ID for each record. the interesting thing is that when I run the "dbscan just on 3 attributes" R gives me an ERROR regarding "stackoverflow" but when

[R] question

2012-02-15 Thread Maryam Farhadi
inputs and outputs to R. I do like this x1>(copy and paste the first input column) x2>(copy and paste the second input column) y> (copy and paste the output column) then I do not know what should I do??? I want to have Malmquist components. performing bootstrap. sincerely you

[R] PS to Taking Integral and Optimization using Integrate() and Optim()

2011-06-08 Thread MARYAM ZOLGHADR
Yacas!" Error in socketConnection(host = "127.0.0.1", port = 9734, server = FALSE, : cannot open the connection In addition: Warning message: In socketConnection(host = "127.0.0.1", port = 9734, server = FALSE, : 127.0.0.1:9734 cannot be opened Cheers, Maryam [[al

[R] Taking Integral and Optimization using Integrate, Optim and maxNR

2011-06-06 Thread MARYAM ZOLGHADR
roblem. Assume the case that I have summation of f(x1,y)+f(x2,y)+...+f(x12,y) The article have done it by E04JAF-NAG Fortran Library Routine Document. But I want to do it in R. Thanx all. Cheers, Maryam [[alternative HTML version deleted]] _