similar to: Non-standard sorts on vectors

Displaying 20 results from an estimated 1000 matches similar to: "Non-standard sorts on vectors"

2009 Sep 29
1
vectors levels are carried through to subsets...
I have a dataset. Initially, it has 25 levels for a certain factor, Description. However, I then subset it, because I am only interested in 2 of the 25 factors. When I subset it, I get the following. The vector lists only the two factors, yet there remain 25 levels: > Quadrats.df$Description [1] Emergent 25x75 Emergent 25x75 Emergent 25x75 Emergent 25x75 Emergent 25x75 Emergent 25x75
2011 Mar 29
2
List extraction
I have created a list of tables with the same columns but different number of row. Example (actual list has ~200 elements): > temp1<- data.frame(ID=c("Herb","Shrub"),stat=c(4,5),pvalue=c(.03,.04)) > temp2<- data.frame(ID=c("Herb","Shrub", > "Tree"),stat=c(12,15,13),pvalue=c(.2,0.4,.3)) > L<-list(a=temp1,b=temp2) > L $a
2010 Jul 29
2
Using '[' as a function
I am learning R, and instead of learning by rote, I am trying to better understand the language in order to improve my programming. So any "meta-information" on why the following code works would be greatly appreciated... I obtained this code to extract the first record from each of a series of vectors in a list: >example<- list(c(1,2),c(3,4),c(4,5)) [[1]] [1] 1 2 [[2]] [1] 3 4
2010 Feb 18
2
Extracting values from a list
I have run a kruskal.test() using the by() function, which returns a list of results like the following (subset of results): Herb.df$ID: 4-2 Kruskal-Wallis chi-squared = 18.93, df = 7, p-value = 0.00841 -------------------------------------------------------------------- Herb.df$ID: 44-1 Kruskal-Wallis chi-squared = 4.43, df = 6, p-value = 0.6187 So then, how do extract a vector
2010 Feb 18
2
subset() for multiple values
This code works: subset(NativeDominant.df,!ID=="37-R17") This code does not: Tree.df<-subset(NativeDominant.df,!ID==c("37-R17","37-R18","10-R1","37-R21","37-R24","R7A-R1","3-R1","37-R16")) how do i get subset() to work on a range of values? -- View this message in context:
2009 Aug 19
2
how do i vectorize relational queries in R
I am basically trying to append a value(vector) to one dataframe using a relational value from another dataframe. Obviously, I can use a loop to accomplish this. However, is there a way to vectorize it? Example: > data <- data.frame(c(1,1,1,2,2,2,3,3,3),rep(2,9)); names(data) <- > c("Sample","Score") > meta <-
2004 Sep 22
3
IE under wine.
Does intenet explorer work under wine? Thanks Chip -- Ralph "Chip" Blach IBM LTC Raleigh, North Carolina 919 543 1207
2009 Sep 29
1
Interesting function in a function problem....
#I have these data. Basically, I want to run a tapply to calculate the mean and st. err. by factor. #The problem is, I want to add a finite correction to the variance prior to calculating the standard error. #Now I know I could just do this in 3/4 steps by calculating the var, applying the correction, then calculating the StErr. #However, I am trying to learn about functions and how they work. So
2009 Sep 29
1
axis scale issues....
I have read all the help on axis scales, which seems to be much harder to deal with than it should be, given how common the need to alter axes. Anyway....yeah, suppress the axis using yaxt then call and define the new scale using axis(). The problem is, this doesn't change the actual axis, only the text. Example: plot(1:length(TreeDensity.df$Description[which(TreeDensity.df$Description ==
2020 Sep 30
2
Logitech C922 webcam
On 09/29/2020 10:07 PM, John Pierce wrote: > try the camera in a USB 2 port, it should work just fine at usb 2 speeds. > most systems, the USB 3 ports hve a 'blue' tongue, while the 2 ports are > black or another color. > > On Tue, Sep 29, 2020 at 6:50 PM H <agents at meddatainc.com> wrote: > >> On 09/29/2020 09:09 PM, John Pierce wrote: >>> do
2011 Apr 12
1
lookup not working properly
Hello! Below is my exmample. "myref" is my reference data frame with columns a and b. "temp" is my data with column c analogous to column a in "myref". I am trying to create a new variable b - in "temp" - that matches values from b in "myref" to values in c. If you look at the resulting data frame (temp - at the bottom), you'll notice that
2009 Jul 13
1
Help get this simple function to work...
I have a function (see below). This function has one object, ID. If I run the loops by themselves using a character value (ie,"VFFF1-7") instead of the function object, then the loops work fine. However, when I try to insert the character value via the function call, it doesn't work. I don't get an error, but the TotalCover.df dataframe does not update according to the loop
2008 Dec 22
3
Summary information by groups programming assitance
All - I have data that looks like psd Species Lake Length Weight St.weight Wr Wr.1 vol 432 substock SMB Clear 150 41.00 0.01 95.12438 95.10118 0.0105 433 substock SMB Clear 152 39.00 0.01 86.72916 86.70692 0.0105 434 substock SMB Clear 152 40.00 3.11 88.95298 82.03689 3.2655 435 substock SMB Clear
2012 Feb 17
2
lmer - error message
Hi all, I am fairly new to mixed effects models and lmer, so bear with me. Here is a subset of my data, which includes a binary variable (lake (TOM or JAN)), one other fixed factor (Age) and a random factor (Year). lake FishID Age Increment Year 1 TOM 1 1 0.304 2007 2 TOM 1 2 0.148 2008 3 TOM 1 3 0.119 2009 4 TOM 1 4 0.053 2010 5
2010 Aug 21
1
How to find residual in predict ARIMA
Dear All, I have a model to predict time series data for example: data(LakeHuron) Lake.fit <- arima(LakeHuron,order=c(1,0,1)) then the function predict() can be used for predicting future data with the model: LakeH.pred <- predict(Lake.fit,n.ahead=5) I can see the result LakeH.pred$pred and LakeH.pred$se but I did not see residual in predict function. If I have a model: [\ Z_t =
2002 Jul 11
2
Nested anovas in R not doing what they ought to...
Hi, there I first sent this e-mail a couple months ago, to no avail.Since I am not a member on your mailing list, so could you please cc: a response to me? I'll be sure to check the list today for replies. I am currently attempting to perform an ANOVA with both nested and normal factors. My problem is that R is treating my nested factors the exact same way as it would interaction terms.
2008 Aug 22
2
Newbie programming help
All - Not sure if this is a real programming question, but here goes: I have data that looks like Lake Length Weight 1 158 45 1 179 70 1 200 125 1 202 150 1 206 145 1 209 165 1 210 140 1 215 175 1 216 152 1 220 150 1 221 165 ... where lake goes from 1 - 84 and the number of rows for each lake is variable (but > ~20). I'm trying to do two things: 1) build a simple linear model of the
2016 Oct 08
3
LLVM Social in Salt Lake City, UT (Nov. 14th)?
Hi everyone, On Monday, November 14, 2016 the LLVM in HPC workshop will be held in Salt Lake City, Utah (in conjunction with the SC16 conference). For last year's workshop, which was in Austin, we held an LLVM social the evening of the workshop, and I think that turned out really well. If you'll be in Salt Lake City and are interested in attending an LLVM social on the evening of November
2019 Oct 26
3
CentOS 8 and DELL 7540 Intel AX200 WIFI
Hello all, I recently bought a brand new Dell Precision 7540 laptop.? Before buying I checked the specifications from the RedHat hardware list and they said that it was "fully RedHat 8 Certified" and listed all the hardware that was "certified" to work with that laptop. https://access.redhat.com/ecosystem/hardware/3979771 I have had good results the last few years with
2005 Jul 11
2
CIs in predict?
Dear All, I am trying to put some Confidence intervals on some regressions from a linear model with no luck. I can extract the fitted values using 'predict', but am having difficulty in getting at the confidence intervals, or the standard errors. Any suggestions would be welcome Cheers Guy Using Version 2.1.0 (2005-04-18) on a PC vol.mod3 <-