Displaying 20 results from an estimated 200 matches similar to: "rbind with missing columns"
2015 Apr 12
2
Loop sobre muchos data frames
Jorge, estimados colaboradores de R-help
Estuve tratando de utilizar un script para uno de los pasos en mi análisis,
que es transformar cada uno de los corpus en mi espacio de trabajo en un
objeto TermDocumentMatrix
Tengo un vector llamado bNames que lista todos los corpus que quiero pasar
a TDM, y construí los siguientes comandos:
tdm.n1 <- vector('list', length = length(bNames))
2015 Apr 10
5
Loop sobre muchos data frames
Jorge
Gracias por el consejo. Aparentemente no lo estoy aplicando bien, pues el
objeto que obtengo no contiene lo que quiero.
Me explico, al ejecutar
txt <- vector('list', length = length(names)) #names el el vector donde ya
tenía almacenada la lista de txt's
for(i in seq_along(txt)){
txt[[i]] <- Corpus(VectorSource(names[i]))
}
obtengo el objeto txt:
> class(txt)
[1]
2015 Apr 10
3
Loop sobre muchos data frames
Hola a todos!
Estoy en un proyecto de text mining y por razones de los recursos con que
cuento tuve que separar los archivos de texto de input del proyecto en
muchos archivos pequeños.
Luego de transformar cada uno de estos archivos en un corpus separado,
puedo aplicar limpieza sobre cada corpus, buscar n-gramas, construir cada
termDocumentMatrix y finalmente reunir todo en una sola TDM.
Pero
2002 Nov 24
2
Include "print" output into plots
Hello,
I would like to set up some automatic reporting using R. For this purpose, I
need to include the output of "print" commands into the graphics produced by
some "plot" commands.
1. Is there an easy way to do this?
2. Is it possible to redirect "print" into a string?
(except redirecting into a file and than scanning back?)
3. What is the best way to get
2006 Sep 24
1
(PR#9248) Incomplete loading of files into Windows script
Please, we do need complete reproduction instructions (and not
speculation) as the FAQ asks.
1) How exactly did you read the file in?
2) 'longer' than what?
3) What line ending is this?
I've just tried loading a 1000-line 50kb file using the 'Open Script' menu
item, and it worked with CRLF, LF or CR line endings.
Some guesses are that there are control characters in the
2003 Jan 14
1
residuals() with missing data, alignment to original data set
Hello,
I have a data frame and want to do the following.
Do a regression of one variable versus another:
fit <- lm(a ~ b)
Then I would like to plot the residuals of this fit versus a third variable:
bwplot(residuals(fit) ~ group)
This fails, if a or b contain NAs, because the data in the residuals() -
vector are not aligned anymore to the data in the original data frame.
Is there a
2004 Sep 05
1
Question to NLME, ML vs. REML
Dear all,
I am planning to use nlme library for analysis of experiments in semiconductor
industry. Currently I am using "lm" but plan to move to "lme" to handle
within wafer / wafer-to-wafer and lot-to-lot variation correctly.
So far everything is working well, but I have a fundamentel question:
NLME offers "maximum likelihood" and "restricted maximum
2006 Aug 26
1
Memory usage decreases drastically after save workspace, quit, restart, load workspace
Dear all,
I have the following problem:
- I have written a program in R which runs out of physical memory
on my MacBook Pro with 1.5 GB RAM
- The memory usage is much higher then I would expect from the
actual data in my global environment
- When I save the workspace, quit R, restart R and load the
workspace again, memory usage is much less then before
(~50 MB instead of ~1.5
2001 Sep 28
3
evaluating the contents of a string
Hi,
suppose I do:
b <- matrix(1:9,3,3)
bname <- "b"
now
dim(b)
returns
[1] 3 3
and
dim(bname)
returns
NULL
is there a function to pass bname to such that dim returns the dimensions
of b?
like
dim(somefunc(bname))
returns
[1] 3 3
does 'somefunc' exist?
daver
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|David Richmond It
2013 Jun 04
1
[PATCH] add restricted mode to sftp-server
Hello.
These patches add a new mode of operation for the sftp server.
It is located between the ordinary, unrestricted mode and read-only mode.
It allows you to add files to the server, but only if these files do
not exist on the server before.
Changes to existing files - are prohibited.
Please review them, maybe these patches will be useful not only to me.
Thank you.
-------------- next part
2015 Sep 28
2
mirroring one domain.tld to domain.tld.au
I have Postfix/Dovecot/postfixadmin/MySQL with several virtual mailbox
domains
one of the domains is like aname.com.au, the user also now has aname.com,
and, would like to 'mirror' most of the addresses to be user at aname.com,
THOUGH, some are to remain as user2 at aname.com.au
so, both user at aname.com as well as user at aname.com.au should be one user
the users retrive emails as
2013 Apr 15
8
[PATCH] btrfs-progs: No-op when called as fsck.btrfsck
Hi,
I thought that I would attempt a quick little patch that will make btrfsck into
a No-op when called as fsck.btrfsck.
The reasoning is that the FAQ states that it is recommended and safe to do so,
and the current 12.04 version of Ubuntu just symlinks fsck.btrfsck to btrfsck
instead of /bin/true.
PS - Apologies if I mess this git send-email up!
Dan McGrath (1):
btrfs-progs: No-op when
2012 Dec 21
1
improved methods error
While trying to install a package, I received this error
** preparing package for lazy loading
Error in matchSignature(signature, fdef, where) :
more elements in the method signature (2) than in the generic signature (1)
A more helpful variant is
Error in matchSignature(signature, fdef, where) :
more elements in the method signature (2) than in the generic signature (1)
for function
2023 Mar 22
3
[libnbd PATCH 0/3] reenable execvpe unit testing in Alpine Linux containers
These patches have been pushed (f5a065aa3a9c..9075f68ffc8b); I'm posting
them for visibility.
Laszlo
Laszlo Ersek (3):
lib/test-fork-safe-execvpe.sh: generalize "run" to "run0"
lib/test-fork-safe-execvpe.sh: cope with Alpine Linux / BusyBox
limitations
Revert "ci: skip "lib/test-fork-safe-execvpe.sh" on Alpine Linux"
ci/skipped_tests
2024 Jan 11
1
support for ALIAS records
While SVCB/HTTPS provides a better solution for the browsing use case, I see other use cases where ALIAS/ANAME would be ideal, notably in apex RRs.
So while fostering SVCB/HTTPS deployment is a good thing, I wouldn?t mind name server software implementing ALIAS. Including NSD, but I reckon it?s much more challenging to do due to NSD architecture than it was to implement it in PowerDNS.
But if
2010 Mar 16
3
function arguments: name of an object vs. call producing the object?
In a function, say foo.glm for glm objects I want to use the name of the
object as a label for some output,
but *only* if a glm object was passed as an argument, not a call to
glm() producing that object.
How can I distinguish these two cases?
For example, I can use the following to get the name of the argument:
foo.glm <- function(object) {
oname <- as.character(sys.call())[2]
2012 Jun 03
2
Caller ID : FSK ETSI or FSK US
Hello, All :)
Regarding to incoming caller ID on PSTN line, which one is best supported
by asterisk: is it FSK ETSI or FSK US?
I bought some caller ID converter hardware (convert DTMF to FSK and vice
versa) but still asterisk can not detect it.
The converter has a switch FSK ETSI or FSK US
This is what I put in /etc/asterisk/chan_dahdi.conf
...
cidsignalling=bell
cidstart=ring
...
If after
2024 Jan 11
1
support for ALIAS records
Hi Christof!
AFAIK, PowerDNS is the only open source name server that supports ALIAS. There was an idea to standardize ALIAS as "ANAME" (https://datatracker.ietf.org/doc/draft-ietf-dnsop-aname/), but the idea was dropped in favor of SVCB/HTTPS record https://datatracker.ietf.org/doc/rfc9460/. So now we have to wait until all Browser vendors implement SVCB/HTTPS.
Regards
Klaus
PS: If
2002 Dec 20
1
smbclient and large file support
smbclient (and smbtar) in version 2.2.7a (and prior) has problems with
large files (> 4GB). The following patch (against 2.2.7a) fixes all
known problems with this. This code has been checked into the CVS tree
in all branches as well.
--
======================================================================
Herb Lewis Silicon Graphics
Networking Engineer
2012 Mar 02
3
speed up merge
Hello,
I have a nasty loop that I have to do 11877 times. The only thing that
slows it down really is this merge:
xx1 = merge(dt,ua_rd,by.x=1,by.y= 'rt_date',all.x=T)
Any ideas on how to speed it up? The output can't change materially (it
works), but I'd like it to go faster. I'm looking at getting around the
loop (not shown), but I'm trying to speed up the merge first.