similar to: drop elements of vector by class

Displaying 20 results from an estimated 2000 matches similar to: "drop elements of vector by class"

2006 Feb 16
2
looping through tasks
Hi, I'm moving (slowly) to R from STATA. I often have need to move through a set of tasks across a series of years. In this case, you can see that I'm mimicking -reshape- in STATA, but I'm less interested in the task than in programming R. library(foreign) mydata<-read.dta("z:\example.dta") for (y in 2000:2002) {
2007 Jun 11
2
how to ignore error messages?
Dear group: I wrote a code to iterate a non-linear fit with a set of data. The entire process didn't implemented to the end because an error message, "singular gradient". I knew that some sub-sets (columns) do not fit my formula well and may result in parameters going to infinity. It is pretty hard to remove those sub sets before running the code since that will take a lot of
2005 Jul 04
2
using index of a loop as a macro variable
Hi, I'm a long-time STATA user and a R newbie. I'm doing ok, but I'm addicted to STATA macro variables. Is there something like a macro variable in R? Specifically, I'd like to be able to do something like for (i in 1:3) { ..... x`i' <- ... } where R would resolve x`i' to the objects named x1, x2 and x3 as I move through the loop. I guess I could create these in
2007 Mar 22
3
Cohen's Kappa
Hi, im little bit confused about Cohen's Kappa and i should be look into the Kappa function code. Is the easy formula really wrong? kappa=agreement-chance/(1-chance) many thanks christian ############################################################################### true-negativ:7445 false-positive:3410 false-negativ:347 true-positiv:772 classification-aggrement:68,6%
2003 Aug 17
1
(no subject)
Hi all, >str(df) `data.frame': 31837 obs. of 3 variables: $ x : num 410683 410700 410720 410740 410324 ... $ y : num 43136 43126 43123 43125 42709 ... $ wz: num -101.1 -94.9 -93.3 -94.5 30.8 ... >library(gstat) >g<-gstat(id="rv",form=wz~1,loc=~x+y,data=df,model=mat,nmax=500,set=list(average=1)) >str(g) List of 3 $ data :List of 1 ..$ rv:List of 10 ..
2008 Apr 08
0
Mac OS upgrade upsets access to samba shares
Mac OS details: Our client was able to access her network resources without any problem until yesterday. She is using a high end Macbook Pro. She has the latest full version of Dave 7.1 installed. Her Mac OS X is 10.4.11 When she attempts to connect to these resources she receives the following error: "The Finder cannot complete the operation because some of the data in
2011 Apr 07
1
By function
Hello all! I have a data frame with nine variables and 293 cases. (attached goes the csv file). I need to calculate a index using the sum of one variable (N) divided by the length of other variable (Fisherman), but for each day (Date). I tried to use that codes: by (cpue, cpue$Date, function (x) sum (cpue$N)/length(cpue$Fisherman)) tapply (cpue$Data, cpue$Data, function (x) {sum
2002 Feb 04
2
Help with accessing elements of a list
Hi, As part of the analysis of a longitudinal study, I have a list, called wg, on R 1.3.1 for windows created as follows - wg <- by(xx, xx$mrn, function(xx) lm(xx$maternal.wt ~ xx$gestation, data=xx)) xx is a data.frame, and so wg contains the results of 293 linear regressions, as lm objects. Now what I want is to extract the 293 intercepts and regression coefficients as a vector, and
2002 Feb 14
1
Advice on using barplot
Greetings- I'm venturing into a new (for me) area of using R: some presentation graphics based on R data. I'd like to compare two distributions of ordinal variables in relatively small (N=203 and 207) subsets of an R dataset. I can get a reasonably good picture of the distributions' differences with: x11() plot(table(hcd.df$auth.sum[hcd.df$datecat==1]),
2006 Jan 05
6
Inheritance Question
Hi, My application has a table of People that has information about them, and I want to have a subset of those people as Users - people that can login to the application. What is the best way to do this? Add columns to People that only Users would use? I''ve read the threads on single table inheritance, but it seemed a little bit wasteful: 10,000 people vs 50 users For those more
2009 Jan 22
2
Standard errors of least squares adjusted means
Hello, I have the following model: lm.7 <- lm(Y ~ F + C1 + C2 , data = EM4) F is a 4-level factor, the rest are covariates centered at their mean (Y is a two-column matrix). I have tried to find functions to give the model-adjusted means (adjusted at the covariates'means) and their standard deviations for each. (That is, what I believe is called in SAS "least square or LS-means,
2002 Jan 27
5
EPS->LaTeX problem
Greetings- I have a strange problem displaying a graph from R (1.3.1, linux) in a LaTeX document of documentclass seminar. I'm using graphicx to include the file: \usepackage{graphicx} ... \resizebox{\textwidth}{\textheight}{\includegraphics{crime.eps}} When I do this, the entire slide (including the page number) is rotated 180 degrees. Any ideas why this happens? The graph was created
2006 Apr 23
1
Comparing GLMMs and GLMs with quasi-binomial errors?
Dear All, I am analysing a dataset on levels of herbivory in seedlings in an experimental setup in a rainforest. I have seven classes/categories of seedling damage/herbivory that I want to analyse, modelling each separately. There are twenty maternal trees, with eight groups of seedlings around each. Each tree has a TreeID, which I use as the random effect (blocking factor). There are two
2015 May 21
2
Fermi+ shader header docs
On Thu, May 21, 2015 at 10:05 AM, Robert Morell <rmorell at nvidia.com> wrote: > Hi Ilia, > > On Sat, May 02, 2015 at 12:34:21PM -0400, Ilia Mirkin wrote: >> Hi, >> >> As I'm looking to add some support to nouveau for features like atomic >> counters and images, I'm running into some confusion about what the >> first word of the shader header
2002 Jan 27
1
DBM databases for R?
Hello! Can I use DBM databases (as they are used in Perl) for the import of large datasets in R? Thanks in advance for your help, Petra Steiner - --------------------------------------------------- Petra Steiner Arbeitsbereich Linguistik Universitaet Muenster Huefferstrasse 27 48149 Muenster
2009 Apr 16
2
Question about BUILTIN\Administrators and BUILTIN\Users nested groups in 3.3.3
Sorry about the dumb question: Are the "BUILTIN\Administrators" and "BUILTIN\Users" local (nested) groups supposed to be populated with DOMAINNAME\Domain Administrators and DOMAINNAME\Domain Users (respectively) by default? If I download the Redhat Samba package, they are populated. Not so with a compiled version. I've had a helluva time populating BUILTIN\Administrators
2017 Nov 11
11
[Bug 103689] New: there is an exploitable page fault that can be reliably triggered from the chromium sandbox can possibly lead to remote attackers causing a denial of service condition or possibly running system code.
https://bugs.freedesktop.org/show_bug.cgi?id=103689 Bug ID: 103689 Summary: there is an exploitable page fault that can be reliably triggered from the chromium sandbox can possibly lead to remote attackers causing a denial of service condition or possibly running system code. Product: xorg
2011 Feb 04
1
read.table error
R experts, I am working with a fairly large data set comprised of 563 rows by 116 columns including several different modes. I have been unable to read in the data set completely using the read.table function and the RGui (i.e. nearly half the total number of rows are missing from the data set along with the column names). The data does read in fully using Tinn-R's Rterm; however, at several
2002 Feb 08
3
Plotting multiple columns on same graph
I'd like to produce a series of simple line graphs for my methods class that show the three questions used on a repeated survey to make up a particular index. The data frame is: > efficacy.df year complicated havesay dontcare 1 1952 71 68 63 2 1954 NA NA NA 3 1956 64 71 71 4 1958 NA NA NA 5 1960
2007 Feb 26
3
PLotting R graphics/symbols without user x-y scaling
Is it possible to add lines or other user defined graphics to a plot in R that does not depend on the user scale for the plot? For example I have a plot plot(x,y) and I want to add some graphic that is scaled in inches or cm but I do not want the graphic to change when the x-y scales are changed - like a thermometer, scale bar or other symbol - How does one do this? I want to build my own