Displaying 20 results from an estimated 6000 matches similar to: "as.factor does not work inside function"
2011 Dec 11
2
incomplete final line found warning
Hi,
I saved the following as a UTF-8 encoded file named amberutil.r
as.factor.loop <- function(df, cols){
if (!is.null(df) && !is.null(cols) && length(cols) > 0)
{
for(col in cols)
{
df[[col]] <- as.factor(df[[col]])
}
}
df
}
And got this warning message,
> source('D:/ambertuil.r')
Warning message:
In readLines(file) : incomplete final line
2010 Nov 24
4
R encoding question
Hi,
I am using RpgSQL to retrieve data from a PostgreSQL database wich is
with encoding UTF8, and I have some Chinese character in one of the
columns, unfortunately R can't show it correctly.
> df <- dbGetQuery(con, "select * from test")
> df
a b
1 1 ????????\xa2
2 2 ???? EURO\xa1
I see the following option, do I need to change the encoding option to
show
2011 Mar 09
2
No response after click the "show Rules" button on Tab "Associate".
Hi,
I am using Rattle 2.6.4 with R 2.12.2 on win64, is this a bug ?
Following is the content after execute the associate analysis process:
Summary of the Apriori Association Rules:
Number of Rules: 23351
Summary of the Measures of Interestingness:
support confidence lift
Min. :0.1250 Min. :1 Min. :2.667
1st Qu.:0.1250 1st Qu.:1 1st Qu.:2.667
Median :0.1250
2012 Jan 19
3
What does the : operator mean in glm formulas
Hi,
I see the following is the credit scoreing in R guide :
m2<-glm(formula = good_bad ~ checking + duration + history+ purpose +amount + savings + employed + installp + marital +
coapp +age + other + depends + telephon + foreign +checking:amount
What does checking:amount mean?
Regards,
Xiaobo Gu
2011 Mar 18
2
Does RHIPE support R on Windows as the user desktop environment?
Hi,
Since we can?t access Google Groups here in China, so please forgive me if anyone has asked this question before.
Sincerely
Xiaobo Gu
2010 Aug 01
3
Can saved R object .RData files be loaded by more than one R sessions for read only purpose?
Especially for large ff objects.
Xiaobo.Gu
[[alternative HTML version deleted]]
2012 Oct 17
1
What's your opinion about the Transparency Layer feature of Oracle R Enterprise?
Hi,
The Transparency Layer feature of Oracle R Enterprise overcomes the
RAM limitation of R, and can take advantage of multiple core
processing of the database server by translating R expression into
SQL, what about building a open source version of the transparency
layer for relational databases?
Xiaobo Gu
2010 Aug 01
1
How to create ff objects from database connection
Hi
Does anybody know how to create ff objects with data reading from stream objects, such as data reading from PostgreSQL database through RPostgreSQL. For this purpose although we can save the data to a csv file through external tools and then read it through csv readers, but it requires one more data read and write operation, which is of high I/O cost for large datasets.
Xiaobo.Gu
2010 Jul 21
1
Package RPostgreSQL_0.1-6.tar.gz has been checked and built
Hi Dirk
I think there are problems with pg_config, the configure script of
RPostgreSQL checks for pg_config and got ¡°checking for pg_config...
/usr/bin/pg_config¡±. In Solaris 10u7 X64, three versions of PostgreSQL are
installed, there are in /usr/postgres/8.2(8.2.9) and
/usr/postgres/8.3(8.3.3), the corresponding bin files are in
/usr/postgres/<version>/bin and
2010 Jun 27
2
Ways to work with R and Postgres
Hi,
I post this message to the general r-help list hoping anyone within a wider range have suggestions:
There are three ways to integration R and postgres, especially on 64bit Microsoft windows Platform,
1. via RODBC package, which has 32 bit and 64 bit version for windows
2. via RPostgres interface, which only has 32bit version currently
3. via plr for Greenplum, which only supports a
2010 Dec 24
1
How to specify ff object filepaths when reading a CSV file into a ff data frame.
Hi,
The read.csv.ffdf function in package ff will create the ff object
physical file in the default directories, I am trying to let the files
created in the paths users specify, I think the point is to make use
of the asffdf_args parameter,
I have a test CSV file named D:\rtemp\fftest.csv, the content of the
file is as following:
col1,col2,col3
1,"amber",2.4
2,"linda",4.5
2011 Jan 17
3
R vs. C
A question, please about development of R packages:
Are there any guidelines or best practices for deciding when and why to
implement an operation in R, vs. implementing it in C? The "Writing R
Extensions" recommends "working in interpreted R code . . . this is normally
the best option." But we do write C-functions and access them in R - the
question is, when/why is this
2011 Jun 04
2
Does anybody successfully built latest R on AIX 5.3?
[This email is either empty or too large to be displayed at this time]
2010 Aug 01
1
ff objects and ordinary analytical functions.
Hi,
Can the plenty of analytical functions provided by base R and contributed packages be called with ff objects as parameters directly, or do we have to write special version of the functions for ff objects? If it is the latter case, is there a list of functions which support ff objects already.
Xiaobo.Gu
[[alternative HTML version deleted]]
2010 Sep 05
1
assignment by value or reference
Hi Team,
Can you please tell me the rules of assignment in R, by value or by reference.
>From my about 3 months of experience of part time job of R, it seems most times it is by value, especially in function parameter and return values assignment; and it is by reference when referencing container sub-objects of container objects, such as elements of List objects and row/column
2008 May 21
2
rsync into an archive
Hello all,
can rsync sync some directory directlly into a compressed file format..
that way I wouldn't have to compress it myself.... when syncing again it
would decompress the file, sync and re-compress :)
well, maybe this is a crazy idea... !?!?
cheers
joao
2020 May 22
1
R-devel's ...names() questions
Am am missing something or does the new ...names() in R-devel not work
right?
> a <- function(x, ...) ...names()
> a(a=stop("a"), b=stop("b"))
[1] "a" ""
> a(stop("x"), stop("unnamed"), c=stop("c"), d=stop("d"))
[1] NA "" ""
> version
_
platform
2006 Nov 16
1
Confusion about Dll Overriding
the winecfg confused me about DLL overriding. In the 'libraries' tab,
if i specified a Dll file name and click 'Add', how does Wine know
where to load the native file when need? does it mean i also have to
copy the native file into the "c:\windows\system[32]" directory? if
so, why i have to bother with the winecfg, why not directlly copy
files into the
2017 Jan 17
2
UNSOLVED: Difficulties with Windows XP: failed to find cifs/fileserver.y.z@Y.Z in keytab (arcfour-hmac-md5)
On Tue, 17 Jan 2017 04:30:31 -0800 (PST)
rawi via samba <samba at lists.samba.org> wrote:
> Samba - General mailing list wrote
> > And there is your problem, AD lives (or dies) on DNS, unlike NT. You
> > have this line 'dns-nameservers 127.0.0.1' in your smb.conf. It is
> > useless, it is pointing to itself and you are not running a dns
> > server, even if
2008 Dec 23
1
MCP51 sound card can be recognized but can't work
Hi all,
I recently install CentOS 5.2 on my Asus Z99M laptop, everything seem to
works fine but there is some problem with the sound card.
The system can recognized the hardware and I can even run the Realplayer for
linux without any error messages, but it can't make any sound, or even
noise.
I have googled a lot but still can't get it work.
Will anyone please guide me to solve this