В 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
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
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
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
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,
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
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=
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
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.
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
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:
>
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 &
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
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
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
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
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
> 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
>
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
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),
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
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.
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=
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 (
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
[
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
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
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
-
-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
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
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
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.
51 matches
Mail list logo