Displaying 20 results from an estimated 10000 matches similar to: "Subset creates row_names column when exported to MYSQL"
2004 Nov 25
3
Searching for a string in RSQLite
I'd like to search for a particular string in an SQLite database using
RSQLite, but I'm running into problems constructing the query
properly, because of embedded quotes and parens in the string.
Is there a function that escapes these for me, or some other fixup
that would let me do the queries below? In the real situation I don't
have control over what strings get searched for.
2010 Jan 25
1
RMySQL Append data.frame to table
I have a data.frame obj with 5 columns whose colnames match the fields
in my "contact" table. The only other field my MySQL table has is an id
field which is the PK and is set to auto increment.
I'd like to load this data.frame using something like:
dbWriteTable(con, "contact", dat, append=TRUE)
However, I get this error:
Error in mysqlExecStatement(conn, statement,
2002 Dec 18
1
A little problem handling logicals in RMySQL under R1.6.1
There is a little problem in handling logicals in RMySQL:
# here is the MySQL connection
> con
<MySQLConnection:(1816,0)>
# here is the data frame
> print(a<-data.frame(x=c(TRUE,FALSE),y=c(FALSE,TRUE)))
x y
1 TRUE FALSE
2 FALSE TRUE
# as promised, the two data frame columns are identified as logicals and
# the field types are set to tinyint
> field.types <-
2018 Jan 15
0
sum multiple csv files
Your message seems unclear, and as evidence the respondents are giving various answers. You should provide a small sample of input and output data as it would look in R to avoid this kind of thrashing about. See [1][2][3] for guidance. Note that you also really need to figure out how to make sure your email program sends plain text, because HTML formatting WILL be stripped by the mailing list
2010 Aug 12
2
How to building my own datafile
Hi folks,
I'm prepared building my own datafiles, simple file at start, for testing
wondering how to process? Which software will be used,
MySQL/MS-SQL/MS-Excel/Open Office-Calc etc?
On searching I found r-cran-rmysql on Ubuntu repo.
Further searching I found;
RMySQL: R interface to the MySQL database
http://cran.r-project.org/web/packages/RMySQL/index.html
Whether install the above
2017 Aug 29
2
DBI::dbWriteTable syntax error apparently from quotes
I have been successfully using RODBC for a long time (years) to connect to
MS SQL Server from R.
This week I wanted to try using odbc but I am seeing some problems which
may be related to how I set up my driver and/or connection.
The dbWriteTable manual page gives as an example command:
dbWriteTable( pDB$con, "mtcars", mtcars[1:5,])
When I try this I get the following error
Error:
2011 Nov 08
1
dbWriteTable with field data type
Hello,
When I do:
dbWriteTable(con, "r.BOD", cbind(row_names = rownames(BOD), BOD))
...can I specify the data types such as varchar(12), float, double
precision, etc. for each of the fields/columns?
If not, what is the best way to create a table with specified field data
types (with the RpgSQL package/R)?
Regards,
Ben
[[alternative HTML version deleted]]
2018 Jan 15
4
sum multiple csv files
Hi, I am pretty new to R and I would apreciatte very much your help to
solve my problem. I have 40 csv files that have the same structure, and I
want to merge them into a single data frame.
I already have load and combined all the cvs files into a large list, and I
created two
filenames <- list.files('data',full.names=TRUE)
All_data <- lapply(filenames,function(i){
###read cvs
2010 Feb 01
3
Convert a column of numbers to a column of strings
Hello,
Please excuse me if this question has been asked before. I'm new to R, and
have been trying to google the answers without any success.
I would like to convert a set of date and time into R date-time class. Right
now, the dates and times are in integer format, so I first need to convert
them into string, and then to R date-time using strptime. However, I have a
problem converting them
2017 Aug 29
0
DBI::dbWriteTable syntax error apparently from quotes
Double quotes are not legal SQL syntax. Use single quotes.
--
Sent from my phone. Please excuse my brevity.
On August 29, 2017 2:21:44 AM PDT, Eric Berger <ericjberger at gmail.com> wrote:
>I have been successfully using RODBC for a long time (years) to connect
>to
>MS SQL Server from R.
>This week I wanted to try using odbc but I am seeing some problems
>which
>may be
2007 Mar 12
2
Create meetme conference rooms on the flight.
Hi all,
Anyone know how to dynamically create meetme conference rooms on the
flight? I remembered a while ago there was a switch that tell meetme to
create the conference room is the room is not defined in the
meetme.conf. It doen't seem to be working for me anymore.
Thnx
2013 Jul 25
2
limitation on number of contexts in extensions.conf
Hello
Asterisk version 1.6.2.9.
I want to know is there any limitation on number of contexts or including external file (#include <filename>) which can be defined in extensions.conf. When I try to include around 40 external files, my dialplan doen't get reloaded.
Regards,
Kamlesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2002 Dec 13
2
Must Samba have DNS server?
Dear all,
I have an Linux Server 7.1 which doen't connect to internet and doesn't have a DNS server as well. I use 192.168.10 IP addresses.
If I still setup Samba server (ver 2.2), can Windows 2000 make a connection to the Samba server?
Many thanks
Tan Duong
-------------- next part --------------
HTML attachment scrubbed and removed
2003 Aug 15
2
Samba3: PDC and local admins
Hi!
I have samba 3 beta2 as PDC.
Now I need to make all mebers of the unix grop "users" local admins on
their Windows systems, because Wordperferct 8 doesn't run otherwise.
As the "domain admin group" setting from smb.conf doen't exist anymore,
I don't know, how to do the group mapping correctly. Could someone
explain the steps to do it?
Thanks in advance for
2009 Oct 23
2
How to generate 183 Session Progress
Hello everybody,
I have 2 users connected on the same Asterisk server that are connected with 2 different Asterisk servers.
For outgoing calls, one in receiving 183 Session Progress and the other not! Do you have any idea why?
Thanks.
I have tried to understand by myself and in their INVITE they have almost the same Allow and Supported SIP Headers
The one that works:
Allow: INVITE, ACK,
2010 Apr 30
0
RMySQL and dates
I am trying to read and write database tables that have a date field in
them.
I am constructing a data.frame, then using dbWriteTable to create the
table and dbReadTable to read it.
>datatbl<-data.frame( dates, trialnum, fooddel, ethdel, trialtime,
trialtype, deliveries, food, ethanol, fcumrec, dcumrec, rrf, rrd)
>ifelse(startdate==filelist,
2006 Jul 09
2
Wine - almost a laugh but really a cry
After reading about a major Direct3D rewrite in the new wine-0.9.16 version ,
I gave it a try (again) and installed it on my Fedora Core 5 system (Athlon64
3200+ with a Geforce 6600GT and latest proprietary nvidia driver installed -
kernel-2.6.17-1.2145_FC5).
To see whether anything has really changed, I dug up my old Diablo2/LoD and
installed it.
And Lo, things have changed!
Whereas previous
2009 Mar 04
3
Converting file system
Hi @all!
I tested what happens with a file which is saved at a FAT32 partition and then this partition is converted to NTFS.
So first I transfered the file with rsync from the FAT32 partition to my Linux /home folder. Then I converted the FAT32 partition to NTFS.
After the convertation I transfered the file again to see what has changed (amount of data).
I was surprised!!!! Nothing has changed!!!
2005 Nov 18
3
How to run R in batch mode
Hello to everybody!
I want to run R in batch mode but it doen't work (Error: syntax error)
I've found this in R help:
R CMD BATCH [options] infile [outfile]
I have tried differents commands:
(I have been working in the same directory I have "test.txt" file and
"test2.txt" would be the output file)
> R CMD BATCH "test.txt"
or
> R CMD BATCH
2004 Aug 06
2
ices stdinpcm
I have problems with the stdinpcm module in ices2. The player fills its
buffer and doen't play anything and fill the buffer again and this
repeats (with winamp). when I download the stream with wget I can play
it from hard disk... is this a common problem with ices2 or do only I
experience this behaviour?
the oss module works.
--- >8 ----
List archives: http://www.xiph.org/archives/