Re: [R] Problem in R code

2023-11-09 Thread Ivan Krylov
В Wed, 8 Nov 2023 16:03:15 +0530 Crown Flame пишет: > for(i in 1:8) > { > LST_city <- extract(LST, c(lon[i],lat[i]), fun = mean, buffer = > 1, na.rm = TRUE) #error > } Three things you might need to change: 1. You are trying to assign the output of extract() to the same variable LST_cit

[R] Problem in R code

2023-11-09 Thread Crown Flame
Good afternoon, I have been working on my thesis project on the topic "Urban Heat Island Pattern in India". To achieve the results I am applying a* two-dimensional Gaussian fit* on an LST raster of 1 km spatial resolution but I am facing two errors in the following code. library(raster) LST <- ras

Re: [R] problem in R

2015-11-12 Thread Marco
Excerpts from Rolf Turner's message of 2015-11-06 00:34:06 -0200: > > On 06/11/15 14:31, Jim Lemon wrote: > > > > > The fundamental problem that has emerged in this discussion is that > > you seem to be applying the method of post-modernist deconstruction > > to programming in R. I see no futur

Re: [R] problem in R

2015-11-05 Thread Rolf Turner
On 06/11/15 14:31, Jim Lemon wrote: The fundamental problem that has emerged in this discussion is that you seem to be applying the method of post-modernist deconstruction to programming in R. I see no future in this enterprise. *Gotta* be a fortune!!! cheers, Rolf -- Technical Editor

Re: [R] problem in R

2015-11-05 Thread Jim Lemon
Hi thanoon, When I run your code, I get two error messages. Those error messages tell you all you need to know to solve the first part of your problem (i.e. that none of the values in W1 and W2 are changed from NA). The second part of your problem is that even if you attend to those error messages,

Re: [R] problem in R-code

2015-11-04 Thread Jim Lemon
Hi thanoon, Well, you have generated a one column matrix of missing values (NA) and then tried to use those values in a logical test... Jim On Wed, Nov 4, 2015 at 8:02 PM, thanoon younis wrote: > Dear R-Users > > After correct some errors in the code below i have only this error > > "Error in i

Re: [R] problem in R-code

2015-11-04 Thread thanoon younis
Dear R-Users After correct some errors in the code below i have only this error "Error in if (BZ[i] < 0.25) { : missing value where TRUE/FALSE needed" how can i solve this problem please? N<-200;P<-9 #Sample size BZ=matrix(NA, nrow=N, ncol=1) W=matrix(NA, nrow=N, ncol=

Re: [R] problem in R-code

2015-11-03 Thread Jim Lemon
Hi thanoon, The problem may lie in your definition of BZ (which I see Boris has also noticed). Given your code, it will be a vector containing 200 zeros. Your code will generate 200 ones as zero is less than 0.25. Try defining BZ as follows: BZ<-runif(200) You should get something more interestin

Re: [R] problem in R-code

2015-11-03 Thread Boris Steipe
Whatever - just type: W <- floor(BZ * 4) + 1 B. On Nov 3, 2015, at 11:09 PM, Boris Steipe wrote: > Are you telling me it contains only zeros? Or is it a vector of length zero? > > B. > > > On Nov 3, 2015, at 11:07 PM, thanoon younis > wrote: > >> BZ is hidden variable with zero values.

Re: [R] problem in R-code

2015-11-03 Thread Boris Steipe
Are you telling me it contains only zeros? Or is it a vector of length zero? B. On Nov 3, 2015, at 11:07 PM, thanoon younis wrote: > BZ is hidden variable with zero values. > > On 4 November 2015 at 07:02, Boris Steipe wrote: > Your approach does not make sense. > > If you initialize a vect

Re: [R] problem in R-code

2015-11-03 Thread Boris Steipe
Your approach does not make sense. If you initialize a vector as say ... BZ <- numeric(5) ... what do you _expect BZ contains? Also: if you run a loop like you do for (j in 1:1) { print(j) } ... what do you _expect_ will happen? B. On Nov 3, 2015, at 10:43 PM, thanoon younis wrote: >

Re: [R] problem in R-code

2015-11-03 Thread thanoon younis
Thank you for your response I have a vector of unknown values BZ which is defined already BZ=numeric(N) and i want to transfer BZ to ordered categorical variable with 4 categories W but when i write this code for(j in 1:1){ if(BZ[j] < 0.25){ W[j] = 1 }else if(BZ[j] >=0.25 &

Re: [R] problem in R-code

2015-11-03 Thread Boris Steipe
Sorry, not round. floor() B. On Nov 3, 2015, at 10:35 PM, Boris Steipe wrote: > Why don't you just multiply by four, round, and add one? > > > > B. > On Nov 3, 2015, at 10:02 PM, thanoon younis > wrote: > >> Dear R-users >> >> I have a problem in the code below, the problem is because i

Re: [R] problem in R-code

2015-11-03 Thread Boris Steipe
Why don't you just multiply by four, round, and add one? B. On Nov 3, 2015, at 10:02 PM, thanoon younis wrote: > Dear R-users > > I have a problem in the code below, the problem is because i want to change > the variable BZ which is a vector with 200x1 dimension to the var. W which > is categ

[R] problem in R-code

2015-11-03 Thread thanoon younis
Dear R-users I have a problem in the code below, the problem is because i want to change the variable BZ which is a vector with 200x1 dimension to the var. W which is categorical variable with same dimension of BZ but with categorical values with 4 categories but i got on only zero values in w why

Re: [R] Problem in r help me

2015-05-04 Thread PIKAL Petr
R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ghada > Almousa > Sent: Saturday, May 02, 2015 11:03 AM > To: r-help@r-project.org > Subject: Re: [R] Problem in r help me > > > hello dears > > > > I have Search to compare the results between the thr

Re: [R] Problem in r help me

2015-05-04 Thread PIKAL Petr
R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ghada > Almousa > Sent: Saturday, May 02, 2015 11:03 AM > To: r-help@r-project.org > Subject: Re: [R] Problem in r help me > > > hello dears > > > > I have Search to compare the results between the three types of

Re: [R] Problem in r help me

2015-05-02 Thread Ghada Almousa
> hello dears > > I have Search to compare the results between the three types of cluster > k-maen ,Em and Hierarchal clusters > How i figured the number of iterations , the time required to build each > Cluster ,accuracy and sum square error SSE for each cluster in the R > programming >

[R] Problem in r help me

2015-04-30 Thread Ghada Almousa
hello dears I have Search to compare the results between the three types of cluster k-maen ,Em and Hierarchal clusters How i figured the number of iterations , the time required to build each Cluster ,accuracy and sum square error SSE for each cluster in the R programming [[alternative

Re: [R] problem in R

2015-02-20 Thread Sarah Goslee
First, please reply to the list, not just me. On Fri, Feb 20, 2015 at 10:22 AM, thanoon younis wrote: > thank you very much for your help > > actually, my data set like this > > #Data Set > testJAGSdata = list(N1=200, N2=200, P=18, > >R=structure( > .Data=c(8.0, 1.0,1.0, 8.0),

Re: [R] problem in R

2015-02-20 Thread Sarah Goslee
Hi, On Fri, Feb 20, 2015 at 9:48 AM, thanoon younis wrote: > Dear all members > > I have the following matrix in R > >> thd <- matrix(testJAGSdata$thd, ncol=6, byrow=TRUE) >> head(thd) > [,1] [,2] [,3] [,4] [,5] [,6] > [1,] -200 -2.517 -1.245 -0.444 0.848 200 > [2,] -200 -1.447 -0.42

[R] problem in R

2015-02-20 Thread thanoon younis
Dear all members I have the following matrix in R > thd <- matrix(testJAGSdata$thd, ncol=6, byrow=TRUE) > head(thd) [,1] [,2] [,3] [,4] [,5] [,6] [1,] -200 -2.517 -1.245 -0.444 0.848 200 [2,] -200 -1.447 -0.420 0.119 1.245 200 [3,] -200 -1.671 -0.869 -0.194 0.679 200 [4,] -200 -1.

Re: [R] problem in R

2015-01-06 Thread Uwe Ligges
On 05.01.2015 18:03, thanoon younis wrote: Dear all R members I have a problem in the R when i wanted to call winbugs as following #Input data set for WinBUGS thd18 <-read.table("C:/Users/hp/Desktop/thd18.txt") #Input data set for WinBUGS data<-list(N1=2000,N2=2000,P=9,R=Ro,z1=

[R] problem in R

2015-01-05 Thread thanoon younis
Dear all R members I have a problem in the R when i wanted to call winbugs as following #Input data set for WinBUGS thd18 <-read.table("C:/Users/hp/Desktop/thd18.txt") #Input data set for WinBUGS data<-list(N1=2000,N2=2000,P=9,R=Ro,z1=yo1,z2=yo2,thd18) #Call WinBUGS model<-bugs (

Re: [R] problem in r-code

2014-05-09 Thread Suzen, Mehmet
Wrong list. This is an R list not Bugs. You may want to consult Bugs materials: http://www2.mrc-bsu.cam.ac.uk/bugs/weblinks/webresource.shtml On 8 May 2014 11:36, thanoon younis wrote: > dear all members > > is there anyone explain to me the code below and how can i transfer this > code to winbug

[R] problem in r-code

2014-05-08 Thread thanoon younis
dear all members is there anyone explain to me the code below and how can i transfer this code to winbugs program. q[i,1]=qnorm(runif(1,min=.5,max=1),0,1) thanks in advance thanoon [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] problem in R related to import n export

2012-01-15 Thread jim holtman
My quick guess is that it not an R problem, but with your version of EXCEL. What version are you using, since this used to be a limitation of Excel. Just tried to output an object with 1436 columns and read it fine into 2007 version of EXCEL. On Sun, Jan 15, 2012 at 10:09 AM, mukul purva wrote:

[R] problem in R related to import n export

2012-01-15 Thread mukul purva
hello, i hav a prob in R lang. i want to do correlation of data frame 22810(gene) rows and 1436 colums(experiment) when i covert this file in csv or xls format it reads only 1024 cloumns. n when i do correlation of data mean 22810 *22810 matrix made in terminal then i export in csv or xls b

Re: [R] problem in R

2012-01-04 Thread William Dunlap
turtles > Sent: Wednesday, January 04, 2012 2:15 PM > To: r-help@r-project.org > Subject: Re: [R] problem in R > > Michael, thank you for your post, I learned a lot. > > Why is it that people prefer na.exclude to na.omit? > > - > > > Isaac > Resear

Re: [R] problem in R

2012-01-04 Thread iliketurtles
Michael, thank you for your post, I learned a lot. Why is it that people prefer na.exclude to na.omit? - Isaac Research Assistant Quantitative Finance Faculty, UTS -- View this message in context: http://r.789695.n4.nabble.com/problem-in-R-tp4260254p4263119.html Sent from the R help ma

Re: [R] problem in R

2012-01-04 Thread R. Michael Weylandt
I'm not a huge fan of this sort of solution because it doesn't make sense for non-vector-shaped (i.e., matrix or data.frame) data. It only works here because the matrix produced is a special 1xN case. E.g., # Set up some data (and yes, I realize I'm using the trick I'm speaking out against, but c

Re: [R] problem in R

2012-01-04 Thread iliketurtles
data<-matrix(rnorm(10)) data[c(1,4,6)]<-NA print(data) data<-matrix(data[!is.na(data)]) print(data) - Isaac Research Assistant Quantitative Finance Faculty, UTS -- View this message in context: http://r.789695.n4.nabble.com/problem-in-R-tp4260254p4260976.html Sent from the R help mailin

Re: [R] problem in R

2012-01-03 Thread Petr PIKAL
Hi > > hello sir, > i m a student of bioinformatics,i hv a problem in R, i want to > do correlation analysis of microarray data,hw can i ignore the "NA" value > for the calculation or correlation.this is a very large data n many empty > fields they giving me NA values of correlatio

[R] problem in R

2012-01-03 Thread mukul purva
hello sir, i m a student of bioinformatics,i hv a problem in R, i want to do correlation analysis of microarray data,hw can i ignore the "NA" value for the calculation or correlation.this is a very large data n many empty fields they giving me NA values of correlation,wat i do??? pleas

Re: [R] PROBLEM IN R version 2.13.0 (2011-04-13)

2011-07-03 Thread Sergio Ivan Roman Ponce
ley [mailto:jwiley.ps...@gmail.com] Sent: domingo, 03 de julio de 2011 09:26 p.m. To: Sergio Ivan Roman Ponce Cc: r-help@r-project.org Subject: Re: [R] PROBLEM IN R version 2.13.0 (2011-04-13) I could not find the "asreml" package on CRAN or bioconductor, so I did not install it, but I ca

Re: [R] PROBLEM IN R version 2.13.0 (2011-04-13)

2011-07-03 Thread peter dalgaard
On Jul 3, 2011, at 21:26 , Joshua Wiley wrote: > I could not find the "asreml" package on CRAN or bioconductor, so I > did not install it, but I can load all of the other packages without a > problem. If you post where to get the "asreml" package, I can try > that too. The asreml package is int

Re: [R] PROBLEM IN R version 2.13.0 (2011-04-13)

2011-07-03 Thread Joshua Wiley
I could not find the "asreml" package on CRAN or bioconductor, so I did not install it, but I can load all of the other packages without a problem. If you post where to get the "asreml" package, I can try that too. Cheers, Josh R version 2.13.0 (2011-04-13) Platform: x86_64-pc-mingw32/x64 (64-b

Re: [R] PROBLEM IN R version 2.13.0 (2011-04-13)

2011-07-03 Thread Duncan Murdoch
On 11-07-03 7:21 AM, Sergio Ivan Roman Ponce wrote: I am using R (version 2.13.0; 2011-04-13). Platform: x86_64-pc-mingw32/x64 (64-bit). The messages that I see is “This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team f

[R] PROBLEM IN R version 2.13.0 (2011-04-13)

2011-07-03 Thread Sergio Ivan Roman Ponce
I am using R (version 2.13.0; 2011-04-13). Platform: x86_64-pc-mingw32/x64 (64-bit). The messages that I see is “This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information” I am using the following li

[R] PROBLEM IN R version 2.13.0 (2011-04-13)

2011-07-03 Thread Sergio Ivan Roman ponce
I am using R (version 2.13.0; 2011-04-13). Platform: x86_64-pc-mingw32/x64 (64-bit). The messages that I see is “This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information” I am using the following li

Re: [R] Problem in R documentation

2011-06-06 Thread siddharth arun
Thanks Jorge it worked On Mon, Jun 6, 2011 at 8:02 PM, Jorge Ivan Velez wrote: > Hi Siddharth, > > adf.test() is part of the "tseries" package, so you need to download and > install it before using that function. Try the following and let us now what > you get: > > install.packages('tseries') > r

Re: [R] Problem in R documentation

2011-06-06 Thread Jorge Ivan Velez
Hi Siddharth, adf.test() is part of the "tseries" package, so you need to download and install it before using that function. Try the following and let us now what you get: install.packages('tseries') require(tseries) ?adf.test HTH, Jorge On Mon, Jun 6, 2011 at 2:41 AM, siddharth arun <> wrote

Re: [R] Problem in R documentation

2011-06-06 Thread Sarah Goslee
What operating system are you using? What version of R are you using? How did you install the package in question? Did the installation process give any error messages? Did you load the package before trying to use it? What package are you trying to load - there is no "time series" package. Do you

[R] Problem in R documentation

2011-06-06 Thread siddharth arun
I am not able to run Dickey-Fuller test. adf.test() function is not working. It is showing 'Error: could not find function "adf.test" Can any tell how to call "time series" library? -- Siddharth Arun, 4th Year Undergraduate student Industrial Engineering and Management, IIT Kharagpur [

Re: [R] Problem in R with TCL 8.4

2009-06-30 Thread Uwe Ligges
Which R, which OS, which affylmGUI (which prety much sounds like BioConductor) version, ..??? If this is R-2.9.1 under Windows: It ships with tcl85.dll, hence there might be some side effects of your additional tcl 8.4 installation. But hard to guess without seeing more details of you syst

[R] Problem in R with TCL 8.4

2009-06-30 Thread Bilal Bayindir
Hello, We are using the TCL 8.4. We have a problem that we got when trying to start the affylmGUI library in R. The error is like this: " This application has failed to start because tk85.dll was not found. Re-installing the application my fix the problem. " We thought that may be we can p

Re: [R] problem in R for Linear mixed model~

2008-06-22 Thread Manli Yan
t; -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im > Auftrag von Manli Yan > Gesendet: Sunday, June 22, 2008 9:30 PM > An: r-help@r-project.org > Betreff: [R] problem in R for Linear mixed model~ > > Dear R users: > I just got confused som

Re: [R] problem in R for Linear mixed model~

2008-06-22 Thread Daniel Malter
- -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Manli Yan Gesendet: Sunday, June 22, 2008 9:30 PM An: r-help@r-project.org Betreff: [R] problem in R for Linear mixed model~ Dear R users: I just got confused some R code used in linear mixed model

[R] problem in R for Linear mixed model~

2008-06-22 Thread Manli Yan
Dear R users: I just got confused some R code used in linear mixed model~ example,two factors,A, B,C,A is fixed ,B,C are random,and B is nested in C,if I wannt to use linear mixed model,are the following code correct for each case? case1:want to know random effect of B, case1<-lme(y~A*B*C

Re: [R] Problem in R 2.6.0 for windows ?

2007-11-19 Thread Dieter Menne
Caio Azevedo gmail.com> writes: > When I try to save a plot in a PDF format, using R 2.6.0 for windows, it > appears the following message > > Error: Invalid font type > Warning messages: > 1: font family not found in PostScript font database > 2: font family not found in PostScript font databa

[R] Problem in R 2.6.0 for windows ?

2007-11-19 Thread Caio Azevedo
Hi all, When I try to save a plot in a PDF format, using R 2.6.0 for windows, it appears the following message Error: Invalid font type Warning messages: 1: font family not found in PostScript font database 2: font family not found in PostScript font database However, when I use the version 2.