В 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
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
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
>
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
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=
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
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:
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
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
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
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
Hi:
Thank you very much,and for your case
if I wirte as
regress=lme(yield~nitro*Variety,data=Oats,random=~Variety|Block)
what this mean?
Regards
2008/6/22 Daniel Malter <[EMAIL PROTECTED]>:
> Hi,
>
> random=~1|B/C
> C is nested in B
>
> ##Example
> data=Oats
> regress=lme(yield~nitro*Va
Hi,
random=~1|B/C
C is nested in B
##Example
data=Oats
regress=lme(yield~nitro*Variety,data=Oats,random=~1|Block/Variety)
##i.e. variety is nested in block
summary(regress)
##End of example
Best,
Daniel
-
cuncta stricte discussurus
-
-Urspr
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
37 matches
Mail list logo