Displaying 8 results from an estimated 8 matches for "values1".
Did you mean:
values
2013 Mar 25
2
Faster way of summing values up based on expand.grid
Hello!
# I have 3 vectors of values:
values1<-rnorm(10)
values2<-rnorm(10)
values3<-rnorm(10)
# In real life, all 3 vectors have a length of 25
# I create all possible combinations of 4 based on 10 elements:
mycombos<-expand.grid(1:10,1:10,1:10,1:10)
dim(mycombos)
# Removing rows that contain pairs of identical values in any 2 of...
2010 Oct 06
1
C code called from R: reallocate arrays passed as arguments?
...ot;arguments" are really needed as arguments or
not. When such switch is 0 (says "no"), the C code "feels free" to
manipulate these "arguments", and in particular it tries to modify its
extension (reallocate).
To be clear:
I define the "argument" in R: values1 <- double(size)
values1 is passed as an argument in ".C".
If the switch is set to 0 (says that "values1" is not a real argument), the
C function tries to reallocate the pseudo-argument values1:
double *tmp2 = realloc(values1, new_size);
if(tmp2 != NULL){...
2024 Aug 16
1
allequal diff
? Fri, 16 Aug 2024 10:35:35 +0200
<sibylle.stoeckli at gmx.ch> ?????:
> what do you mean by use is.na() in getValues(). So I need to call
> getValues a second time?
Not necessarily, but it's one of the options. I was thinking along the
lines of:
values1 <- getValues(r1)
mask1 <- is.na(values1)
# Do the same for r2
# Combine the masks
all.equal(values1[!combined_mask], values2[!combined_mask])
Unlike compareRaster(), this assumes that the coordinate grid of r1 and
r2 is already the same and that only some of the values may differ.
> I su...
2010 Dec 18
3
dotchart for matrix data
Readers,
I am trying to use the function dotchart. The data is:
> testdot
category values1 values2 values3 values4
1 a 10 27 56 709
2 b 4 46 47 208
3 c 5 17 18 109
4 d 6 50 49 308
The following error occurs
> dotchart(testdot,groups=testdot[,2])
Error in dotchart(testdot, label...
2024 Aug 16
1
allequal diff
...;
Subject: Re: [R] allequal diff
? Fri, 16 Aug 2024 10:35:35 +0200
<sibylle.stoeckli at gmx.ch> ?????:
> what do you mean by use is.na() in getValues(). So I need to call
> getValues a second time?
Not necessarily, but it's one of the options. I was thinking along the lines of:
values1 <- getValues(r1)
mask1 <- is.na(values1)
# Do the same for r2
# Combine the masks
all.equal(values1[!combined_mask], values2[!combined_mask])
Unlike compareRaster(), this assumes that the coordinate grid of r1 and
r2 is already the same and that only some of the values may differ.
> I su...
2024 Aug 16
2
allequal diff
Many thanks Ivan
Use is.na() on getValues() outputs, combine the two masks using the | operator to get a mask of values that are missing in either raster, then negate the mask to choose the non-missing values:
all.equal(getValues(r1)[!mask], getValues(r2)[!mask])
--> what do you mean by use is.na() in getValues(). So I need to call getValues a second time? I suppose you mean to first
2007 Jun 05
1
Gruff Stacked Bar order of data
I am making a stacked bar graph in Gruff. Could anyone help me by
telling me how I can change the order in which the data is stacked. No
matter what order I put the data in, I get the same result on the png
picure. Any help would be much appreciated.
Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because
2013 Mar 18
2
Confirmatory factor analysis using the sem package. TLI CFI and RMSEA absent from model summary.
...ely into R before copying the model
ABILITY -> V12, ability0
ABILITY -> V9, ability1
ABILITY -> V14, ability2
ABILITY -> V13, ability3
ABILITY -> V3, ability4
ABILITY -> V1, ability5
ABILITY -> V15, ability6
ABILITY -> V10, ability7
VALUES -> V17, values0
VALUES ->V18, values1
VALUES -> V8, values2
VALUES -> V2, values3
VALUES -> V5, values4
IDENTITY -> V16, identity0
IDENTITY -> V6, identity1
IDENTITY -> V11, identity2
IDENTITY -> V7, identity3
ABILITY <-> ABILITY, NA, 1
VALUES <-> VALUES, NA, 1
IDENTITY <-> IDENTITY, NA, 1
V1 <...