Displaying 20 results from an estimated 1000 matches similar to: "Correct subsetting in R"
2017 Nov 01
1
Correct subsetting in R
It's not what I want, the first data frame has 499 observations and the second data frame is a subset of the first one but with 375 observations. I want something that returns the ID for training data frame
On Wednesday, November 1, 2017 10:18 AM, Eric Berger <ericjberger at gmail.com> wrote:
matches <- merge(training,data,by=intersect(names(training),names(data)))
HTH,
Eric
2017 Nov 01
1
Correct subsetting in R
Hi all,
I have two data frames that one of them does not have the column ID:
> str(data)
'data.frame': 499 obs. of 608 variables:
$ ID : int 1 2 3 4 5 6 7 8 9 10 ...
$ alright : int 1 0 0 0 0 0 0 1 2 1 ...
$ bad : int 1 0 0 0 0 0 0 0 0 0 ...
$ boy : int 1 2 1 1 0 2 2 4 2 1 ...
$ cooki : int 1 2 2 1 0 1 1 4 2 3
2017 Jun 11
3
post ino64: lockd no runs?
On Sun, Jun 04, 2017 at 08:57:44AM -0400, Michael Butler wrote:
> It seems that {rpc.}lockd no longer runs after the ino64 changes on any
> of my systems after a full rebuild of src and ports. No log entries
> offer any insight as to why :-(
>
> imb
I don't tend to use NFS on my systems that are running head, so I
haven't had occasion to test this as stated.
However, I
2011 Feb 14
2
Is there a way to force counters to be treated as "unsigned?"
I am acquiring some sampled data that is time-stamped (with a
POSIXct). Some of the data is in the form of "counters" -- that
is, what is interesting isn't value of a given counter at a given
time, but the change in the counter from one sample to a later one.
As the counters are only incremented, they would be perceived to be
monotonically increasing -- ideally. Unfortunately, the
2017 Jun 12
3
count number of stop words in R
You can define stop words as below.
data <- tm_map(data, removeWords, stopwords("english"))
Patrick Casimir, PhD
Health Analytics, Data Science, Big Data Expert & Independent Consultant
C: 954.614.1178
________________________________
From: R-help <r-help-bounces at r-project.org> on behalf of Bert Gunter <bgunter.4567 at gmail.com>
Sent: Monday, June 12, 2017
2017 Jun 12
0
count number of stop words in R
Thanks for your reply. I know the command
data <- tm_map(data, removeWords, stopwords("english"))
removes English stop words, I don't know how should I count stop words of my string:
str="Mhm . Alright . There's um a young boy that's getting a cookie jar . And it he's uh in bad shape because uh the thing is falling over . And in the picture the mother is
2017 Jun 12
3
count number of stop words in R
define your string as whatever object you want:
data <- "Mhm . Alright . There's um a young boy that's getting a cookie jar . And it he's uh in bad shape because uh the thing is falling over . And in the picture the mother is washing dishes and doesn't see it . And so is the the water is overflowing in the sink . And the dishes might get falled over if you don't fell
2017 Jun 12
3
count number of stop words in R
Hi all,
Is there a way in R to count the number of stop words (English) of a string using tm package?
str="Mhm . Alright . There's um a young boy that's getting a cookie jar . And it he's uh in bad shape because uh the thing is falling over . And in the picture the mother is washing dishes and doesn't see it . And so is the the water is overflowing in the sink . And the
2017 Jun 12
0
count number of stop words in R
Defining data as you mentioned in your respond causes the following error:
Error in UseMethod("tm_map", x) :
no applicable method for 'tm_map' applied to an object of class "character"
I can solve this error by using Corpus(VectorSource(my string)) and the using your command but I cannot see the number of stop words in my string!
On Monday, June 12, 2017 8:36
2017 Jun 12
0
count number of stop words in R
You can use regular expressions.
?regex and/or the stringr package are good places to start. Of
course, you have to define "stop words."
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Jun 12, 2017 at 5:40
2012 Feb 03
2
Having trouble controlling plot() output (e.g., color)
I expect that there's something glaringly obvious that I'm overlooking,
as I'm justr getting back involved in using R after a several-month
hiatus (from R). So I welcome clues.
When I invoke plot(), merely specifying a data.frame with 2 columns,
specify the plot type ("type") of "p" ("points"), and that I want the
point to be green ('col =
2003 Sep 01
1
Apparent problem with ida(4); patch included
Someone else also reported seeing these symptoms with recently-updated
sources:
>>> Kernel build for FREEBEAST started on Mon Sep 1 05:25:41 PDT 2003
...
===> ida
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
perl @/kern/makeops.pl -h @/kern/device_if.m
perl @/kern/makeops.pl -h @/kern/bus_if.m
perl @/kern/makeops.pl -h @/pci/pci_if.m
rm -f .depend
mkdep -f .depend -a
2006 Mar 15
5
Recent 6.1-PRE: burncd: ioctl(CDRIOCFIXATE): Input/output error
I'm running:
localhost(6.1-P)[21] uname -a
FreeBSD localhost 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #19: Wed Mar 15 07:15:25 PST 2006 root@g1-18.catwhisker.org.:/common/S2/obj/usr/src/sys/LAPTOP_30W i386
localhost(6.1-P)[22]
I figured I'd grab a copy of the recent 6.1-BETA4 (disc1) ISO to
try it out & hand it out to folks....
It seems to have worked, but I got a bit of a whine
2011 Feb 10
1
"Error in plot.window(...) : invalid 'xlim' value" from plot(...par(new = TRUE))
[New to the community; still in early part of R's learning curve.]
Several months ago, I was requested to generate some graphs on a
periodic basis. Accordingly, I managed to figure out a way to do so,
using a combination of Perl and R (in a FreeBSD environment).
While I've needed to adjust a few things here and there, the general
approach has been pretty solid , and the R part has had
2011 Mar 17
1
Using barplot() with zoo -- names.arg not permitted?
I've used barplot(), including the anmes.arg parameter, on data frames
successfully, but I'm even newer to using zoo than I am to R. :-}
I am working on a functon that accepts a data frame ("df") as its
primary argument, extracts information from it to create a zoo, then
generates a plot based on that.
The data frame has a column called "time" which is a standard
2007 Mar 21
4
Reality check: IPFW sees SSH traffic that sshd does not?
This note is essentially a request for a reality check.
I use IPFW & natd on the box that provides the interface between my home
networks and the Internet; the connection is (static) residential DSL.
I configured IPFW to accept & log all SSH "setup" requests, and use natd
to forward such requests to an internal machine that only accepts public
key authentication; that
2008 Aug 14
0
FreeBSD positions at Juniper Networks (Sunnyvale, CA and elsewhere)
My most recent search of FreeBSD-related positions at my employer
(Juniper Networks in Sunnnyvale, California) turned up 19 hits:
* 17 engineers
* 2 IT
* I Internships
There were some others in other locations (e.g., Bangalore).
Please see <https://careers.juniper.net/careers/careers.html> for
additional details.
Peac,
david
--
David H. Wolfskill david@catwhisker.org
I submit that
2010 Oct 27
0
Sr. SysAdmin position availble at Juniper Networks, Sunnyvale
NOTE: The position is within the IT organization at Juniper, of which
I am not a part. I do not have first-hand knowledge of the working
conditions, and cannot speak to that with authority. I would, however,
encourage anyone intending to express interest to ask about anything
that might be a concern -- preferably during the interview process.
My bias would be to favor someone who wishes to
2018 Jan 04
0
Random Forest tree labels
Hi all,
I have built a Random Forest using Caret package, however, I don't understand how the splits are labeled in trees. My dataset contains the frequency of the words in the speeches of the people:
'data.frame': 499 obs. of 608 variables:
$ alright : num 1 0 0 0 0 0 0 1 2 1 ...
$ bad : num 1 0 0 0 0 0 0 0 0 0 ...
$ boy : num 1 2 1 1 0 2 2 4 2 1 ...
$ cooki : num 1 2 2 1 0 1 1 4
2011 Oct 18
1
Function to "lump" factors together?
Sorry about the odd terminology, but I suspect that my intent might be
completely missed had I used "aggregate" or "classify" (each of which
appears to have some rather special meanings in statistical analysis and
modeling).
I have some data about software builds; one of the characteristics of
each is the name of the branch.
A colleague has generated some fairly interesting