similar to: sqldf modify table

Displaying 20 results from an estimated 200 matches similar to: "sqldf modify table"

2006 Jan 24
1
fitting generalized linear models using glmmPQL
Hi, I have tried to run the following (I know it's a huge data set but I tried to perform it with a 1 GB RAM computer): library(foreign) library(MASS) library(nlme) datos<-read.spss(file="c:\\Documents and Settings\\Administrador\\Escritorio\\datosfin.sav",to.data.frame=TRUE) str(datos) `data.frame': 1414 obs. of 5 variables: $ POB : Factor w/ 6 levels
2005 May 19
5
[OT] Sqlite2 question
So, under Sqlite2, if I want to update a database''s schema, I have to dump the DB, modify the table''s structure, then go and modify EVERY insert statement. The insert statements look like (from memory): INSERT INTO my_table VALUES (''some_id'', ''some_val'', '''', '''', '''', ''some_other
2009 Feb 20
2
importing data to SQLite database with sqldf
Hi all, I am attempting to learn SQL through sqldf... One task I am particularly interested in is merging separate (presumably large) files into a single table without loading these files into R as an intermediate step (by loading them into SQLite and merging them there). Taking a step back, I've considered these alternatives: 1) I know if I use straight SQLite commands I might use the
2005 Dec 17
1
lost in an ActiveRecord::StatementInvalid
I have an error I don''t know how to debug. I am adding the login suport in Depot (the example in the RoR book) and LoginController#add_user throws ActiveRecord::StatementInvalid in an innocent /login/add_user GET request. The trace goes down to a call to SQLiteAdapter#table_structure, and the source code suggests what''s happening is that "PRAGMA
2005 May 08
3
sqlite, views, incorrect data types?
This has been driving me crazy for a few days now. I am using sqlite3 however I have also found this to be the case with 2.8.15: I have data types text or integer on every column of every table in the database. Now i know sqlite doesnt care much about data types, but I believe rails does (correct me if im wrong). On pages that query a table, everything is perfect. BUT when I use a view
2011 Jun 02
0
Using SQLDF to pick values based on word count
I have a data frame in R with the following values. cars autocar cars info what is that donna drive car telephone i need car... I want to select all values which contain 'car', values with three words, and those keywords with car that contain three words. The first part is done with : sqldf("SELECT Keyword FROM dat WHERE Keyword like '%car%'") However, I'm not
2008 Jan 29
1
sqldf error
Hi, sqldf sounds like a very useful package but I don't even get the example to run: > a1s <- sqldf("select * from warpbreaks limit 6") Error in combine(FUN(...)) : argument "value" is missing, with no default > I am using R 2.6.1 on Windows Vista Business and have updated all packages. Some help would be very much appreciated. Many thanks, Werner
2013 Oct 08
1
Summary functions in sqldf() XXXX
Hi everyone, Is it possible to obtain the 1st & 3rd quartiles & the median in a sqldf() select statement? If so, can you please provide the summary fn code? Thanks! Dan [[alternative HTML version deleted]]
2010 Nov 02
1
class changed after execution with sqldf
When I run sqldf to merge two datasets, it's changing the Date (class date) to a numeric value (class factor). Not sure why. Appreciate any insight. Console output for two datasets and the merged dataset (via sqldf) listed below. > summary(df.aggregate) Date Hour x Min. :2010-07-01 0 : 64 Min. : 0.00 1st Qu.:2010-07-25 1 :
2013 Jan 14
1
sqldf package: using variables in where condition
Sent from my iPhone On Jan 13, 2013, at 9:47 PM, ravsre <ravishree51 at hotmail.com> wrote: > I am trying to use the sqldf package to create independent data frames from a > master dataframe. > I want to use sqldf package and perform a simple select statement. However, > what I want to do is to create a loop and repeatedly send a variable to the > where clause condition
2012 Mar 21
1
Using extract function for dates in sqldf
I'm trying to use sqldf to query for the earliest date of a blood test when patients have had multiple tests in a given year. My query looks like this: test11 <- sqldf("select CHILD_ID, min(SAMP_DATE) from lab group by CHILD_ID having extract (year from SAMP_DATE) = 2011") SAMP_DATE has class "date." I get the error
2010 Aug 26
1
sqldf syntax
Please correct the following > sqldf("update esc left join forwagg on esc.ym=forwagg.Date set esc.ri2=forwagg.N1 where esc.age=12","select * from main.esc") Error in sqliteExecStatement(con, statement, bind.data) : RS-DBI driver: (error in statement: near "left": syntax error) Thanks. Stephen [[alternative HTML version deleted]]
2010 Aug 04
1
SQLDF from Variable Matrix
Dear all, I would like to do sample statistics, e.g. mean, median from very large dataset. This is part of commands I use routinely with several dataset so I would like to make it into function. The simplified examples are Test<-data.frame(A=c('a','b','c','a','b','c'),B=c(1,2,3,4,5,6)) #Create function (This one work)
2012 Nov 03
1
sqldf Date problem
Dear R-help readers, i've created a database for quotes data (for 4 years; 2007 -- 2010) with the sqldf package. This database contains a column "Date" in the format mm/dd/yyyy. The table in the database is called "main.data" and the database itself "Honda". I tried to get the Data just for certain period, say from 01/01/2007 until 01/10/2007 with the
2017 Aug 11
0
Fwd: RE: Package sqldf in R and dates manipulation
Sent from Samsung tablet. Dear all, ? I recently read the book ? R data preperation and manipulation using sqldf package? ?by Djoni Darmawikarta? However, I have a problem with manipulation of dates using this package, I do not get the expected results. Do I need to install some packages ?to be able to subset the data by dates in sqldf? ? I am not getting Djoni Darmawikarta?email address. ?
2018 Mar 10
1
error message from sqldf
Dear R users, I got the following error message from running sqldf code in R. do you know how to fix it? I read the sqldf package instruction and did not find a solution. Thank you, Ding chr10 <- sqldf("select * from manifest where CHR==10") UCN3cpg <- sqldf("select * from chr10 where MAPINFO between 5405573 and 5407594), overwrite = TRUE") Error: Table chr10
2013 Jul 16
0
Sqldf y codificación \u00b0 para el grado
Hola Eva, Una forma inmediata es no guardando los valores con esa codificación. Y tras la extracción incluir las unidades... Saludos, Carlos Ortega www.qualityexcellence.es El 16 de julio de 2013 08:23, Eva Prieto Castro <evapcastro@yahoo.es>escribió: > > > Buenos días: > > Creo un data.frame del siguiente modo: > > d<-data.frame(a=c("112.45º",
2013 Jul 16
0
Sqldf y codificación \u00b0 para el grado
Estimada Eva Yo pase por ese problema, sobre todo al cambiar de sistema operativo, o etc. Lo que yo pienso: 1) usar la base de datos adecuada con la configuración de caracteres (yo UTF-8, pero...). 2) intentar migrar con alguna herramienta de una base de datos a la otra (estilo navicat), aunque no se si es la solución. 3) crear un script en R donde compare cadenas y coloque el carácter
2012 Mar 17
1
How to install sqldf to R with version 2.10?
Hi, How to install sqldf to R with version 2.10? I used the R in the cluster of university and there seems no way to update the R version to 2.14. However, I do need sqldf. I tried to install and there is the problem of namespace. How could I solve the problem of namespace and run sqldf on R with version 2.10? Thank you! Best, [[alternative HTML version deleted]]
2008 Sep 16
1
help with SQL, how can i use functions in sql (pkg :sqldf)
Een ingesloten tekst met niet-gespecificeerde tekenset is gescrubt ... Naam: niet beschikbaar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080916/2d0f3a45/attachment.pl>