similar to: subsetting objects

Displaying 20 results from an estimated 5000 matches similar to: "subsetting objects"

2005 Aug 03
4
R CMD build error
Dear list, I try to update the prabclus package. R CMD check works nicely, no warnings, good results in all tests. However, building the package fails: ginkgo:/disk5/home/chrish/RAusw/libsrc R CMD build prabclus * checking for file 'prabclus/DESCRIPTION' ... OK * preparing 'prabclus': * checking whether 'INDEX' is up-to-date ... OK * removing junk files * building
2004 Sep 23
2
gsub
Hi A while back I used gsub to do the following temp<-"000US00231" gsub("something here", "", temp) "00231" I think it involved the `meta characters' somehow. I do not know how to do this anymore. I know strsplit will also work but I remember gsub was much faster. In essence the question is how to delete all characters before a particular
2003 Sep 10
2
coef names in lm
Dear all, I am interested in finding out how to change the names of coefficients in the lm function. I have a design matrix which I called "design" where each variate has its own name. However when I issue the command: lm.1<-lm(response~design-1, weights=some.weights) and follow it with: summary(lm.1) it seems to paste as a character the names of the variates with design i.e I
2004 Apr 06
2
percentile-percentile plot
Hi, Is there a function that does percentile-percentile plot. I do not mean the qqplot. I need to plot the percentiles rather than points themselves. I am hoping for a plot that tells me that the x percentile of one data set corresponds to the y percentile of the other. for example a point on the plot of (.5, .2) will tell me that the 50th percentile of the first data and the 20th percentile of
2005 May 20
4
issues with identical()
Hi all, hope you having a nice day, I ahve this weird results with identical (probably I am not understanding correctly what it does ...) I have these two data frames and I issue : > identical(temp, temp1) [1] FALSE However, these data frames are Nx2 and when I issue: > identical(temp[,2], temp1[,2]) [1] TRUE > identical(temp[,1], temp1[,1]) [1] TRUE and the results from str >
2003 Jul 08
1
readline and R
Dear R users, I am trying to install R 1.7.1 on a sparc-sun-solaris2.8 system. although gnu readline is installed and works fine on the parent directory, R is not recognizing it. I get the following in the config.log file. configure:11627: checking for rl_callback_read_char in -lreadline configure:11658: gcc -o conftest -g -O2 -L/usr/local/lib conftest.c -lreadline -ldl -ltermcap -lm
2005 Mar 23
4
non-derivative based optimization and standard errors.
Hi AlL, I ahve this problem that my objective function is discontinous in the paramaters and I need to use methods such as nelder-mead to get around this. My question is: How do i compute standard errors to a problem that does not have a gradient? Any literature on this is greatly appreciated. Jean,
2004 Oct 01
1
dataload for linux
Is there a dataload utility for linux. The link in genstat is down but I managed to find the utility at: http://gurukul.ucc.american.edu/econ/gaussres/UTILITYS/DATALOAD.HTM but this is a dos/windows version. Thank you Jean
2004 Feb 05
1
lines and dates
Dear All, I have the following data.frame `data.frame': 1563 obs. of 4 variables: $ Model :Class 'AsIs' chr [1:40] "Astro" "Astro" "Astro" "Astro" $ Make :Class 'AsIs' chr [1:40] "Chevrolet" "Chevrolet" $ Production : num 11219 12384 1082 5409 5458 ... $ date :`POSIXlt', format: chr
2005 Jan 30
3
trellis graphics in loops
I have this awkward problem with trellis (lattice). I am trying to generate some plots through loops but the .eps file is empty. When I generate them in a list and print them outside the loop all is fine. this is an example below:( nothing shows up in foo.eps, but all show up in foo1.eps) R vesion 2.0.1, lattice version 0.10-16, on a debian 2.6.8-1 kernel. X <- data.frame(x=rnorm(10000),
2005 Jan 26
2
reshape (a better way)
Hi, I am using the NLSY79 data (longitudinal data from the Bureau of labour stats in the US). The extractor exctracts this data in a "wide" format and I need to reshape it into a long format. What I am doing right now is to do it in chuncks for each and evry variable that is varying and then I merge the data together. This is taking a long time. my question is: How do I specify that
2009 Feb 27
2
Smth. about "Icon=" option in .desktop files created by WINE
When I install some Win32 application using WINE, it creates associated menu item file for it, located at ~/.local/share/applications/wine/Programs/***Program title***/***Program shortcut.desktop***. Well, inside this file I see option named "Icon", where path to some icon is set. Sometimes this path points to some PNG image file, but sometimes it points to something I don't have a
2007 Apr 25
2
assigning two conditions to grep()
Hi, i have a problem in assigning 2 conditions to grep() , my data look like this: DA 24 N7 Rad= 3.4 20 Sac= 0.93 Acc= 4.76 DA 24 N7 Rad= 3.4 14 Sac= 0.65 Acc= 3.33 DA 24 N7 Rad= 3.4 3 Sac= 0.14 Acc= 0.71 DA 24 N7 Rad= 3.4 11 Sac= 0.51 Acc= 2.62 DG 23 N7 Rad= 3.4 8 Sac= 0.37 Acc= 1.91 DG 23 N7 Rad= 3.4 5 Sac= 0.23 Acc= 1.19 DG 23 N7 Rad= 3.4 0 Sac= 0.00 Acc= 0.00 DG 23 N7 Rad= 3.4 3 Sac=
2011 Apr 12
1
extract element from list by rownames
Hi, I've a list of list. I want to extract an element by the rownames. I can extract it by: data[[1]][[1]][[4]][1] But I want to exctract it by a command like this: data[[1]][["B0"]][["smac"]][["cont"]][1] It's possible? Thanks, Alfredo > str(data) List of 1 $ :List of 4 ..$ :List of 4 .. ..$ : num [1, 1:3] 0.4 0.458 0.5 .. ..$ : num
2003 Sep 23
0
ANOVA(L, Terms...)
Hi There I have a lm object with 4 parameters and I want to test wether 2 parameters are equal using a Wald test (basically b1=b2 or b1-b2 =0). In the help file from R it says that under ANOVA the optional arguments " Terms" or "L" test whether a linear combination is equal to 0. I tried; >anova(m1, Terms = Beta1-Beta2=0) but I get the error: Object " Beta1"
2011 Nov 06
1
Deleting rows dataframe in R conditional to “if any of (a specific variable) is equal to”
Dear list, I have been struggling for some time now with this code... I have this vector of unique ID "EID" of length 821 extracted from one of my dataframe (skate). It looks like this: > head(skate$EID) [1] "896-19" "895-8" "899-1" "899-5" "899-8" "895-7" I would like to remove the complete rows in another dataframe
2011 Nov 06
1
Combining some duplicated rows & summing one of their column
Dear list, I have this dataframe: > names(events) [1] "EID" "X" "Y" "trip" "tow" "catch" "effort" "depth" [9] "season" Where some of my unique ID "EID" appears more than once in 162 cases. > length(events$EID)-length(unique(events$EID)) [1] 162 I would like to combined
2004 Sep 17
3
Cannot join SAMBA domain from XP/2K
Hi List. I've got SAMBA 3.0.7 with LDAP passwd backend (OpenLDAP 2.2.15) on Solaris 9 box. When joining the domain I have permanent error "The user name could not be found". To add machine I use account "administrator" which is already exist in SAMBA/LDAP with uid=0 and proper password. I have "add machine script" directive in smb.conf file and I see that
2006 Apr 04
7
Not getting the whole RJS-based partial rendering concept ...
I have been trying all kinds of different ways to produce what I think should be a simple effect, but have not had any luck yet and apparently I am not following the general idea... What I am trying to accomplish is the following (part 1 works and part 2 does not): 1. One of my views has a link_to_remote which updates a div container with a table of data my example is <div
2015 Jan 15
4
[LLVMdev] Registration for Euro LLVM 2015 now open
We are happy to announce that Euro LLVM 2015 is now open for registration. https://www.eventbrite.com/edit?eid=15350278095 Details at: http://llvm.org/devmtg/2015-04/ We would reccomend registering early as places are limited. Andy Thomason, Goldsmiths. --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com