search for: aids2

Displaying 8 results from an estimated 8 matches for "aids2".

Did you mean: aids
2015 Jul 27
2
Error sql en función
Hola Carlos: Gracias por responder! Ayer caí en esta página al buscar el problema con google, pero no conseguir entender y implementar lo que sugiere. Sin entender nada, lo que hice fue: ======================== > library(MASS) > library (sqldf) # Per SQL > data(Aids2, package="MASS") > SQL_PROVA = function (XDADES, XWHE) + { + XDADES_SQL = sqldf ("select * from $XDADES $XWHE") + return(XDADES_SQL) + } > DADES_SEL = SQL_PROVA (XDADES = birthwt, XWHE = "where age < '40'") Error in sqliteSendQuery(con, stateme...
2015 Jul 27
2
Error sql en función
...a función sqldf () funcione dentro de una función. Alguien puede echarme una mano. En resumen, el problema es que cuando lo ejecuto fuera de una función no tengo ningún problema: ========================== > # install.packages("sqldf") > library(MASS) > library (sqldf) > data(Aids2, package="MASS") > options(digits=3) > table (Aids2$state) NSW Other QLD VIC 1780 249 226 588 > max (Aids2$age) [1] 82 > # Sin función: > DADES_SEL = sqldf ("select * from Aids2 where state in ('NSW', 'QLD') and age < 40") &g...
2007 Dec 12
1
Adding a survival object to a data frame (PR#10510)
Full_Name: Edward McNeil Version: 2.6.1 OS: Windows Submission from: (NULL) (203.170.234.5) I want to show students how the survival object looks like in R. Reproducible example: library(MASS) data(Aids2) attach(Aids2) status <- status=="D" stime <- death-diag surv <- Surv(stime, status) D <- data.frame(stime, status, surv) head(D,20) stime status x..i.. 1 176 TRUE 176 2 67 TRUE 67 3 432 TRUE 432 4 77 TRUE 77 5 275 TRUE 275 6 3...
2002 Jul 13
2
Fail to convert any .Rd file
...ce: R CMD Rdconv -t txt MASS.Rd -o MASS.txt 2>MASS.log Comp was thinking for a long, about 30s on Linux 600MHz/128M, but after that R didn't produce the result MASS.txt file, but very large log. Here is its header: ******* Syntax error: mismatched or missing brackets in /----- \name{Aids2} \alias{Aids2} \title{ Australian AIDS Survival Data } \description{ ... and so on, almost entire MASS.Rd followed .. The same situation with man/*.Rd file of any other package. Where am I wrong?! Excuse me for my unexperience, Thanks a lot! PS I'm using R 1.5.0 under Linux (Debian woody...
2003 May 05
1
Error in library(MASS) : package/namespace load failed
Dear all, I have installed 1.7.0 on my Win XP and want to use MASS. But I get this error message: > library(MASS) Error in namespaceExport(ns, exports) : undefined exports: abbey, accdeaths, Aids2, Animals, anorexia, austres, bacteria, beav1, beav2, biopsy, birthwt, ... Error in library(MASS) : package/namespace load failed I therefore again downloaded VR.zip. When I extracted the files I always answered yes to the question of "Would you like to replace the existing file?" I also...
2010 Jun 14
0
areaplot
...data=longley) areaplot(cbind(Armed.Forces,Unemployed)~Year, data=longley) # add=TRUE plot(1940:1970, 500*runif(31), ylim=c(0,500)) areaplot(Armed.Forces~Year, data=longley, add=TRUE) # matrix areaplot(WorldPhones) areaplot(WorldPhones, prop=TRUE) # table require(MASS) areaplot(table(Aids2$age)) areaplot(table(Aids2$age, Aids2$sex)) # ts/mts areaplot(austres) areaplot(Seatbelts[,c("drivers","front","rear")], ylab="Killed or seriously injured") abline(v=1983+1/12, lty=3) } \keyword{kwd1} \keyword{kwd2}
2001 Feb 06
3
RWin 1.2.1: Can't access sample datasets, e.g. MASS
...> .lib.loc [1] "D:/R-WIN/RW1021/library" > Sys.getenv("R_HOME") R_HOME "D:\\R-WIN\\RW1021" > dir("D:\\R-WIN\\RW1021\\library\\MASS\\data") [1] "00Index" "abbey.rda" "accdeaths.rda" "Aids2.rda" [5] "Animals.rda" "anorexia.rda" "austres.rda" "beav1.rda" <snip, 'cabbages' IS there> Same result for any other dataset. All packages were installed in RW1021/library/<pkg>, some by manual download/rinst some...
2003 Apr 09
1
'Apparently' trouble with name spaces and Sweave...
...I am using an updated R-devel rsync'ed this morning and I am using the latest MASS package (which was my first thought). I am not having problems building other packages. Any thoughts? * creating vignettes ... ERROR Error in namespaceExport(ns, exports) : undefined exports: abbey, accdeaths, Aids2, Animals, anorexia, austres, bacteria, beav1, beav2, biopsy, birthwt, Boston, cabbages, caith, Cars93, cats, cement, chem, coop, cpus, crabs, Cushings, DDT, deaths, drivers, eagles, epil, farms, fdeaths, fgl, forbes, GAGurine, galaxies, gehan, genotype, geyser, gilgais, hills, housing, immer, Insur...