I tried to generate the image with the Quartz MS font as follows.
Then use jTessBoxEditorFX to generate the box file, as follows.
0 26 23 97 125 0
1 169 26 189 122 0
2 209 23 279 124 0
3 305 23 370 124 0
4 391 25 461 121 0
5 481 23 551 124 0
6 571 23 641 124 0
7 665 27 731 124 0
8 753 24 822 124 0
9 842 24 912 125 0
The traineddata cannot be recognized normally. Is there any problem with my practice?
Whether there are similar experiences of seniors can guide me, thank you.
This question already has answers here:
Too many field references: 70613; max is 65536
(2 answers)
Closed 4 years ago.
got a problem with Facebook SDK. When i installed this i got error: Unable to convert classes into dex format.
There are installed plagins: Unity IAP 1.16, Facebook SDK 7.13.0, Google Play Service 0.9.50, Appodeal 2.8.45.
Unity 2017.1.2p3.
jdk1.8.0_181 and latest version of sdk tools
No same files or files with diffrent version there.
Here is the link for pastebin with error
CommandInvokationFailure: Unable to convert classes into dex format.
C:/Program Files/Java/jdk1.8.0_181\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Program Files (x86)/Android\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
trouble writing output: Too many field references to fit in one dex file: 86260; max is 65536.
You may try using multi-dex. If multi-dex is enabled then the list of classes for the main dex list is too large.
References by package:
3 android.accounts
30 android.app
1 android.bluetooth
2 android.content
60 android.content.pm
10 android.content.res
3 android.database
49 android.graphics
2 android.graphics.drawable
4 android.hardware
2 android.media
1 android.media.browse
4 android.net
6 android.net.wifi
28 android.os
3 android.print
4 android.provider
13 android.support.annotation
1546 android.support.compat
1546 android.support.coreui
1546 android.support.coreutils
1648 android.support.customtabs
1546 android.support.fragment
1705 android.support.graphics.drawable
1546 android.support.graphics.drawable.animated
1546 android.support.mediacompat
1546 android.support.v4
13 android.support.v4.accessibilityservice
17 android.support.v4.animation
885 android.support.v4.app
114 android.support.v4.content
1 android.support.v4.content.pm
1 android.support.v4.content.res
11 android.support.v4.graphics
41 android.support.v4.graphics.drawable
4 android.support.v4.hardware.display
12 android.support.v4.hardware.fingerprint
10 android.support.v4.internal.view
388 android.support.v4.media
379 android.support.v4.media.session
10 android.support.v4.net
19 android.support.v4.os
63 android.support.v4.print
10 android.support.v4.provider
55 android.support.v4.text
6 android.support.v4.text.util
118 android.support.v4.util
434 android.support.v4.view
138 android.support.v4.view.accessibility
8 android.support.v4.view.animation
495 android.support.v4.widget
409 android.support.v7.app
1546 android.support.v7.appcompat
1546 android.support.v7.cardview
8 android.support.v7.content.res
18 android.support.v7.graphics.drawable
1 android.support.v7.text
2 android.support.v7.transition
77 android.support.v7.view
249 android.support.v7.view.menu
856 android.support.v7.widget
6 android.text
1 android.text.util
16 android.util
22 android.view
8 android.view.accessibility
3 android.webkit
23 android.widget
2 bitter.jnibridge
158 bolts
1540 com.CODvinn.GameOfWords
1540 com.adcolony.adcolonysdk
1270 com.adcolony.sdk
1616 com.amazon.device.ads
1560 com.android.vending.billing
4 com.applovin.sdk
1037 com.appodeal.ads
128 com.appodeal.ads.a
129 com.appodeal.ads.b
80 com.appodeal.ads.c
98 com.appodeal.ads.d
174 com.appodeal.ads.e
58 com.appodeal.ads.f
146 com.appodeal.ads.g
150 com.appodeal.ads.native_ad
107 com.appodeal.ads.native_ad.views
49 com.appodeal.ads.networks
68 com.appodeal.ads.networks.a
45 com.appodeal.ads.networks.vpaid
177 com.appodeal.ads.utils
19 com.appodeal.ads.utils.a
47 com.appodeal.ads.utils.b
4 com.appodeal.ads.utils.c
1540 com.appodeal.appodeal.unity
1540 com.appodeal.inmobi.unity
1540 com.appodeal.ogury.unity
1 com.appodeal.sdk
1540 com.appodeal.startapp.unity
37 com.appodeal.unity
1540 com.appodeal.yandexmetrica.unity
31 com.appodealx.applovin
28 com.appodealx.mraid
66 com.appodealx.sdk
17 com.appodealx.vast
2 com.chartboost.sdk.Libraries
180 com.evernote.android.job
5 com.evernote.android.job.gcm
10 com.evernote.android.job.util
16 com.evernote.android.job.util.support
16 com.evernote.android.job.v14
2 com.evernote.android.job.v19
12 com.evernote.android.job.v21
3 com.evernote.android.job.v24
2 com.evernote.android.job.v26
3 com.facebook.ads
1540 com.google.android.gms
20 com.google.android.gms.actions
4 com.google.android.gms.ads
21 com.google.android.gms.ads.identifier
1594 com.google.android.gms.auth
5 com.google.android.gms.auth.account
1563 com.google.android.gms.auth.api
68 com.google.android.gms.auth.api.accounttransfer
97 com.google.android.gms.auth.api.credentials
6 com.google.android.gms.auth.api.phone
1540 com.google.android.gms.auth.api.phone.license
37 com.google.android.gms.auth.api.proxy
59 com.google.android.gms.auth.api.signin
34 com.google.android.gms.auth.api.signin.internal
1540 com.google.android.gms.auth.license
1540 com.google.android.gms.base
1540 com.google.android.gms.base.license
102 com.google.android.gms.common
98 com.google.android.gms.common.api
338 com.google.android.gms.common.api.internal
41 com.google.android.gms.common.data
44 com.google.android.gms.common.images
160 com.google.android.gms.common.internal
1540 com.google.android.gms.common.license
35 com.google.android.gms.common.stats
27 com.google.android.gms.common.util
1688 com.google.android.gms.drive
54 com.google.android.gms.drive.events
1540 com.google.android.gms.drive.license
10 com.google.android.gms.drive.metadata
20 com.google.android.gms.drive.metadata.internal
39 com.google.android.gms.drive.query
49 com.google.android.gms.drive.query.internal
8 com.google.android.gms.drive.widget
25 com.google.android.gms.dynamic
20 com.google.android.gms.dynamite
2 com.google.android.gms.dynamite.descriptors.com.google.android.gms.flags
16 com.google.android.gms.flags.impl
1915 com.google.android.gms.games
25 com.google.android.gms.games.achievement
13 com.google.android.gms.games.event
155 com.google.android.gms.games.internal
128 com.google.android.gms.games.internal.api
12 com.google.android.gms.games.internal.experience
46 com.google.android.gms.games.internal.player
61 com.google.android.gms.games.leaderboard
1540 com.google.android.gms.games.license
61 com.google.android.gms.games.multiplayer
50 com.google.android.gms.games.multiplayer.realtime
49 com.google.android.gms.games.multiplayer.turnbased
56 com.google.android.gms.games.quest
34 com.google.android.gms.games.request
46 com.google.android.gms.games.snapshot
15 com.google.android.gms.games.stats
40 com.google.android.gms.games.video
3 com.google.android.gms.iid
1518 com.google.android.gms.internal
5 com.google.android.gms.location.places
1547 com.google.android.gms.nearby
72 com.google.android.gms.nearby.connection
1540 com.google.android.gms.nearby.license
95 com.google.android.gms.nearby.messages
2 com.google.android.gms.nearby.messages.audio
163 com.google.android.gms.nearby.messages.internal
6 com.google.android.gms.security
1588 com.google.android.gms.tasks
1540 com.google.android.gms.tasks.license
1540 com.google.example.games.mainlibproj
1581 com.google.games.bridge
15 com.inmobi.a
1076 com.inmobi.ads
70 com.inmobi.ads.cache
7 com.inmobi.commons.a
39 com.inmobi.commons.core.a
24 com.inmobi.commons.core.b
13 com.inmobi.commons.core.c
62 com.inmobi.commons.core.configs
10 com.inmobi.commons.core.d
43 com.inmobi.commons.core.e
12 com.inmobi.commons.core.f
66 com.inmobi.commons.core.network
29 com.inmobi.commons.core.utilities
6 com.inmobi.commons.core.utilities.a
37 com.inmobi.commons.core.utilities.b
10 com.inmobi.commons.core.utilities.uid
160 com.inmobi.rendering
53 com.inmobi.rendering.a
83 com.inmobi.rendering.mraid
29 com.inmobi.sdk
104 com.inmobi.signals
10 com.inmobi.signals.a
13 com.inmobi.signals.activityrecognition
14 com.inmobi.signals.b
53 com.integralads.avid.library.adcolony
2 com.integralads.avid.library.adcolony.activity
2 com.integralads.avid.library.adcolony.base
4 com.integralads.avid.library.adcolony.processing
5 com.integralads.avid.library.adcolony.registration
3 com.integralads.avid.library.adcolony.session
45 com.integralads.avid.library.adcolony.session.internal
19 com.integralads.avid.library.adcolony.session.internal.jsbridge
12 com.integralads.avid.library.adcolony.session.internal.trackingwebview
14 com.integralads.avid.library.adcolony.utils
26 com.integralads.avid.library.adcolony.video
14 com.integralads.avid.library.adcolony.walking
21 com.integralads.avid.library.adcolony.walking.async
1 com.integralads.avid.library.adcolony.weakreference
53 com.integralads.avid.library.inmobi
2 com.integralads.avid.library.inmobi.activity
2 com.integralads.avid.library.inmobi.base
4 com.integralads.avid.library.inmobi.processing
5 com.integralads.avid.library.inmobi.registration
3 com.integralads.avid.library.inmobi.session
45 com.integralads.avid.library.inmobi.session.internal
19 com.integralads.avid.library.inmobi.session.internal.jsbridge
12 com.integralads.avid.library.inmobi.session.internal.trackingwebview
14 com.integralads.avid.library.inmobi.utils
26 com.integralads.avid.library.inmobi.video
14 com.integralads.avid.library.inmobi.walking
21 com.integralads.avid.library.inmobi.walking.async
1 com.integralads.avid.library.inmobi.weakreference
2 com.ironsource.mediationsdk
218 com.moat.analytics.mobile.inm
2 com.moat.analytics.mobile.inm.a.b
1 com.mobvista.msdk
1 com.squareup.okhttp
345 com.squareup.picasso
6 com.startapp.a.a.a
4 com.startapp.a.a.b
32 com.startapp.a.a.c
7 com.startapp.a.a.d
5 com.startapp.a.a.e
3 com.startapp.a.a.f
13 com.startapp.a.a.g
3 com.startapp.android.publish
6 com.startapp.android.publish.a
45 com.startapp.android.publish.ads.a
9 com.startapp.android.publish.ads.b
55 com.startapp.android.publish.ads.banner
87 com.startapp.android.publish.ads.banner.banner3d
35 com.startapp.android.publish.ads.banner.bannerstandard
2 com.startapp.android.publish.ads.c.a
5 com.startapp.android.publish.ads.c.b
111 com.startapp.android.publish.ads.list3d
49 com.startapp.android.publish.ads.nativead
123 com.startapp.android.publish.ads.splash
146 com.startapp.android.publish.ads.video
12 com.startapp.android.publish.ads.video.a
31 com.startapp.android.publish.ads.video.b
48 com.startapp.android.publish.ads.video.tracking
338 com.startapp.android.publish.adsCommon
31 com.startapp.android.publish.adsCommon.Utils
25 com.startapp.android.publish.adsCommon.a
7 com.startapp.android.publish.adsCommon.activities
26 com.startapp.android.publish.adsCommon.adListeners
90 com.startapp.android.publish.adsCommon.adinformation
11 com.startapp.android.publish.adsCommon.b
8 com.startapp.android.publish.adsCommon.c
10 com.startapp.android.publish.adsCommon.d
48 com.startapp.android.publish.adsCommon.e
13 com.startapp.android.publish.adsCommon.f
11 com.startapp.android.publish.adsCommon.g
105 com.startapp.android.publish.cache
163 com.startapp.android.publish.common.metaData
121 com.startapp.android.publish.common.model
17 com.startapp.android.publish.html
40 com.startapp.android.publish.inappbrowser
42 com.startapp.common
54 com.startapp.common.a
3 com.startapp.common.b
3 com.startapp.common.c
1546 com.unity.purchasing
34 com.unity.purchasing.common
1724 com.unity.purchasing.googleplay
1 com.unity3d.ads
1 com.unity3d.ads2
203 com.unity3d.player
2 com.vungle.warren
212 com.yandex.metrica
455 com.yandex.metrica.impl
18 com.yandex.metrica.impl.interact
924 com.yandex.metrica.impl.ob
29 com.yandex.metrica.impl.utils
3 com.yandex.mobile.ads
364 for
21 for.do
26 for.do.byte
8 for.do.case
12 for.do.char
46 for.do.do
23 for.do.for
43 for.do.if
26 for.do.int
177 for.do.new
1 for.do.try
63 if.do.do
3 if.do.do.for
82 if.do.do.if
111 if.do.do.if.do
39 if.do.do.int
71 int
135 io.presage
47 io.presage.actions
8 io.presage.actions.do
6 io.presage.activities
24 io.presage.activities.do
12 io.presage.activities.handlers
73 io.presage.ads
10 io.presage.ads.controller
35 io.presage.byte
14 io.presage.case
76 io.presage.char
27 io.presage.char.do
26 io.presage.else
44 io.presage.else.do
16 io.presage.finder
56 io.presage.finder.model
14 io.presage.flatbuffers
7 io.presage.for
47 io.presage.formats
45 io.presage.formats.multiwebviews
13 io.presage.formats.multiwebviews.video
8 io.presage.goto
17 io.presage.helper
8 io.presage.if
2 io.presage.int
59 io.presage.long
22 io.presage.long.do
27 io.presage.model
15 io.presage.new
32 io.presage.provider
9 io.presage.receiver
35 io.presage.this
20 io.presage.try
2 java.io
15 java.lang
11 java.lang.annotation
5 java.net
2 java.nio
6 java.util
6 java.util.concurrent
5 java.util.logging
1 javax.xml.xpath
14 net.vrallev.android.cat
3 net.vrallev.android.cat.instance
1 org.apache.http.conn.ssl
20 org.fmod
1 org.json
8 org.nexage.sourcekit
239 org.nexage.sourcekit.mraid
14 org.nexage.sourcekit.mraid.internal
6 org.nexage.sourcekit.mraid.nativefeature
18 org.nexage.sourcekit.mraid.properties
36 org.nexage.sourcekit.util
40 org.nexage.sourcekit.vast
139 org.nexage.sourcekit.vast.activity
114 org.nexage.sourcekit.vast.model
6 org.nexage.sourcekit.vast.processor
22 org.nexage.sourcekit.vast.view
]
stdout[
processing archive C:\Users\ZaAz\Desktop\GameOfWords2017\GameOfWords2017\Temp\StagingArea\android-libraries\GoogleAIDL\libs\.\classes.jar...
processing com/android/vending/billing/BuildConfig.class...
processing com/android/vending/billing/IInAppBillingService.class...
processing com/android/vending/billing/IInAppBillingService$Stub.class...
processing com/android/vending/billing/IInAppBillingService$Stub$Proxy.class...
processing archive C:\Users\ZaAz\Desktop\GameOfWords2017\GameOfWords2017\Temp\StagingArea\android- libraries\GooglePlay\libs\.\classes.jar...
processing com/unity/purchasing/googleplay/ActivityLauncher.class...
processing com/unity/purchasing/googleplay/BillingServiceManager.class...
processing com/unity/purchasing/googleplay/BillingServiceManager$1.class...
processing com/unity/purchasing/googleplay/BillingServiceManager$1$1.class...
processing com/unity/purchasing/googleplay/BillingServiceManager$1$2.class...
processing com/unity/purchasing/googleplay/BillingServiceManager$2.class...
processing com/unity/purchasing/googleplay/BillingServiceProcessor.class...
processing com/unity/purchasing/googleplay/BuildConfig.class...
processing com/unity/purchasing/googleplay/Consts.class...
processing com/unity/purchasing/googleplay/Consts$PurchaseState.class...
processing com/unity/purchasing/googleplay/Consts$ResponseCode.class...
processing com/unity/purchasing/googleplay/GooglePlayBillingUnAvailableException.class...
processing com/unity/purchasing/googleplay/GooglePlayPurchasing.class...
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$1.class...
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$2.class...
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$3.class...
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$4.class...
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$5.class...
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$6.class...
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$7.class...
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$Features.class...
processing com/unity/purchasing/googleplay/IActivityLauncher.class...
processing com/unity/purchasing/googleplay/IBillingServiceManager.class...
processing com/unity/purchasing/googlep<message truncated>
I had the same problem a few days ago. This is your error:
Too many field references to fit in one dex file: 86260; max is 65536.
The plugins you are using all have their own dex files and the combined size, especially while using something like GooglePlayGames, can ramp up quickly.
You can bypass this by switching your build type in Build Settings from Internal to Gradle.
If you are still not able to build it correctly, you may want to consider removing some Plugins if you can. (I understand this is probably not your desired approach).
I ended up removing the GooglePlayGames Plugin, which was also slowing my build and app down.
I have a matrix with three columns
https://www.dropbox.com/s/jckdmg1p05v8lv7/y.mat?dl=0
i.e.
E1 E2 W
6 1464 0.36
6 1534 0.27
6 1585 0.27
8 1331 0.332
11 445 0.39
13 844 0.286
14 12 0.126
18 952 0.31
19 2376 0.32
20 394 0.22
20 399 0.22
20 589 0.22
21 321 0.22
21 1187 0.22
21 2509 0.22
22 1187 0.22
23 2235 0.22
24 2376 0.22
25 541 0.14
26 229 0.22
26 321 0.22
26 1187 0.22
26 2054 0.22
27 394 0.53
27 541 0.31
28 394 0.22
28 781 0.22
I used this condition
for k=1:size(y,1)
G(y(k,1),y(k,2))=true;
G(y(k,2),y(k,1))=true;
end
B=cellfun(#(x1) find(x1),num2cell(G,2),'un',0);
to extract links information like this:
1 394
2 2378
3 282
4 282
5 536
6 [1464,1534,1585]
7 2087
8 [394,399,1331]
9 1187
I need a third column contains the weight
e.i. {6,[1464,1534,1585],[0.36;0.27;0.27]}
I tried to use the above condition but I did not get the right values. Does anyone have idea how to do that ??
this is a possible soultion using accumarray:
a=[...
6 1464 0.36
6 1534 0.27
6 1585 0.27
8 1331 0.332
11 445 0.39
13 844 0.286
14 12 0.126
18 952 0.31
19 2376 0.32
20 394 0.22
20 399 0.22
20 589 0.22
21 321 0.22
21 1187 0.22
21 2509 0.22
22 1187 0.22
23 2235 0.22
24 2376 0.22
25 541 0.14
26 229 0.22
26 321 0.22
26 1187 0.22
26 2054 0.22
27 394 0.53
27 541 0.31
28 394 0.22
28 781 0.22];
% concatenate a with its copy, columns 1 and 2 swapped regarding symmetric relations
a = [a ; [fliplr(a(: , 1:2)) , a(: , 3) ]];
%create proper increasing indices for use in accumarray
[S SI] = sort(a(:,1));
S2=[0; (cumsum(diff(S)>0))];
idx = a(:,1);
idx(SI) = S2+1;
%gather elemets for each category
c1=accumarray([idx],a(:,1),[],#(x) {x(1)});
c2=accumarray([idx],a(:,2),[],#(x) {x});
c3=accumarray([idx],a(:,3),[],#(x) {x});
%concatenate columns
out=([c1 c2 c3]);
% your example
out(1,:)
I am conducting Spearman's Correlation with two data sets with 300 objects. These are my variables and commands:
a = [1:300]
b = [1 2 5 11 9 7 24 10 31 23 3 40 6 17 14 20 16 12 33 46 70 37 87 43 98 26 59 58 77 100 35 42 78 80 243 36 33327 4 83 160 163 198 86 94 406 111 28 29 55 113 239 295 110 196 177 32679 229 342 305 300 254 96 210 514 167 172 232 190 117 32081 25 158 19333 241 82 149 159 66 178 24487 68 30 1016 725 266 391 638 348 320 681 242 319 228 381 408 442 202 369 471 821 191 426 8 270 211 2266 619 576 441 680 3431 1167 723 74 318 556 640 395 1059 579 614 212 325 437 323 687 373 599 26637 985 54 84 802 724 154 417 240 1120 818 2309 462 109 104 509 494 427 57 2475 549 396 419 123 580 79 225 1132 351 76 16859 596 862 315 470 992 257 120 409 751 832 285 1534 714 1665 1376 2129 678 416 721 209 31971 183 356 1346 1015 1003 188 1076 1634 608 1056 338 308 145 418 625 1313 121 2484 996 783 329 1185 697 157 1100 175 622 235 456 277 166 2700 1439 461 653 433 540 1191 234 774 1894 1004 741 1062 948 48 99 405 797 237 1104 2286 22620 1429 30672 1808 169 458 22 1115 10660 872 474 1063 88 1727 1017 1107 1398 1519 703 1092 1027 272 263 1152 1770 1099 507 385 2118 19356 1778 2458 410 2110 7522 17166 4065 15136 13294 10876 17174 2434 9898 5663 13594 10506 11552 15635 9322 3223 8949 12388 13216 13851 13852 6696 12177 4700 17199 2067 11110 15486 5664 6593 4701 527 8616 268]
[RHO,PVAL] = corr(b',a','Type', 'Spearman')
RHO =
0.6954
PVAL =
0
Out of the 5 comparisons I made with other data sets of 300 objects, only 1 returned significant P-values. Is there an explanation for this?
I tried a different data set and got a value that was not significant (PVAL > 0.05). I also displayed the answer in a long (15 digits) and exponential form and got 0.00000000000000e+000 using:
format longEng
I also checked with another statistics program that reported the p-value as < 0.0001. This means that the p-value is just really, really small.
I have the following data.frame with about 18 millions of records
Gender Age Bici DepartingSta DateTimeDepa ArrivingSta DateTimeArri TravelTime
1 M 28 69 85 2010-02-16 12:42:32 85 2010-02-16 12:45:37 3.1
2 M 30 11 85 2010-02-16 12:53:29 26 2010-02-16 13:22:23 28.9
3 M 37 43 85 2010-02-16 13:21:46 13 2010-02-16 13:49:47 28.0
4 M 37 826 22 2010-02-16 14:06:40 85 2010-02-16 14:23:13 16.6
5 M 19 662 27 2010-02-16 15:31:15 74 2010-02-16 16:29:17 58.0
6 F 25 8 85 2010-02-16 16:31:53 20 2010-02-16 16:49:26 17.6
17919307 F 26 2760 121 2015-01-30 23:58:33 106 2015-01-31 00:22:08 23.6
17919308 M 22 4077 71 2015-01-30 23:58:50 190 2015-01-31 00:13:24 14.6
17919309 M 32 699 154 2015-01-30 23:58:55 165 2015-01-31 00:02:25 3.5
17919310 F 26 4044 64 2015-01-30 23:59:20 50 2015-01-31 00:05:38 6.3
17919311 M 26 3114 26 2015-01-30 23:59:23 127 2015-01-31 00:12:29 13.1
17919312 M 25 4115 165 2015-01-30 23:59:55 73 2015-01-31 00:12:39 12.7
I want to write a function to subset the trips from January 2015. The input is "201501" and the results is
Gender Age Bici DepartingSta DateTimeDepa ArrivingSta DateTimeArri TravelTime
17919307 F 26 2760 121 2015-01-30 23:58:33 106 2015-01-31 00:22:08 23.6
17919308 M 22 4077 71 2015-01-30 23:58:50 190 2015-01-31 00:13:24 14.6
17919309 M 32 699 154 2015-01-30 23:58:55 165 2015-01-31 00:02:25 3.5
17919310 F 26 4044 64 2015-01-30 23:59:20 50 2015-01-31 00:05:38 6.3
17919311 M 26 3114 26 2015-01-30 23:59:23 127 2015-01-31 00:12:29 13.1
17919312 M 25 4115 165 2015-01-30 23:59:55 73 2015-01-31 00:12:39 12.7
As per suggested in this answer, you could convert your dataset into an xts object and then use intelligent subsetting options:
xtsdf <- xts::xts(df, order.by = df$DateTimeDepa)
xtsdf["201501"]
Which gives:
# Gender Age Bici DepartingSta DateTimeDepa #ArrivingSta
#2015-01-30 23:58:33 "F" "26" "2760" "121" "2015-01-30 23:58:33" "106"
#2015-01-30 23:58:50 "M" "22" "4077" " 71" "2015-01-30 23:58:50" "190"
#2015-01-30 23:58:55 "M" "32" " 699" "154" "2015-01-30 23:58:55" "165"
#2015-01-30 23:59:20 "F" "26" "4044" " 64" "2015-01-30 23:59:20" " 50"
#2015-01-30 23:59:23 "M" "26" "3114" " 26" "2015-01-30 23:59:23" "127"
#2015-01-30 23:59:55 "M" "25" "4115" "165" "2015-01-30 23:59:55" " 73"
# DateTimeArri TravelTime
#2015-01-30 23:58:33 "2015-01-31 00:22:08" "23.6"
#2015-01-30 23:58:50 "2015-01-31 00:13:24" "14.6"
#2015-01-30 23:58:55 "2015-01-31 00:02:25" " 3.5"
#2015-01-30 23:59:20 "2015-01-31 00:05:38" " 6.3"
#2015-01-30 23:59:23 "2015-01-31 00:12:29" "13.1"
#2015-01-30 23:59:55 "2015-01-31 00:12:39" "12.7"
Here's how you can solve this using base R format(), vectorized string comparison, and subset():
df <- data.frame(Gender=c('M','M','M','M','M','F','F','M','M','F','M','M'),Age=c(28L,30L,37L,37L,19L,25L,26L,22L,32L,26L,26L,25L),Bici=c(69L,11L,43L,826L,662L,8L,2760L,4077L,699L,4044L,3114L,4115L),DepartingSta=c(85L,85L,85L,22L,27L,85L,121L,71L,154L,64L,26L,165L),DateTimeDepa=as.POSIXct(c('2010-02-16 12:42:32','2010-02-16 12:53:29','2010-02-16 13:21:46','2010-02-16 14:06:40','2010-02-16 15:31:15','2010-02-16 16:31:53','2015-01-30 23:58:33','2015-01-30 23:58:50','2015-01-30 23:58:55','2015-01-30 23:59:20','2015-01-30 23:59:23','2015-01-30 23:59:55')),ArrivingSta=c(85L,26L,13L,85L,74L,20L,106L,190L,165L,50L,127L,73L),DateTimeArri=as.POSIXct(c('2010-02-16 12:45:37','2010-02-16 13:22:23','2010-02-16 13:49:47','2010-02-16 14:23:13','2010-02-16 16:29:17','2010-02-16 16:49:26','2015-01-31 00:22:08','2015-01-31 00:13:24','2015-01-31 00:02:25','2015-01-31 00:05:38','2015-01-31 00:12:29','2015-01-31 00:12:39')),TravelTime=c(3.1,28.9,28,16.6,58,17.6,23.6,14.6,3.5,6.3,13.1,12.7),row.names=c('1','2','3','4','5','6','17919307','17919308','17919309','17919310','17919311','17919312'),stringsAsFactors=F);
ym <- '201501';
df;
## Gender Age Bici DepartingSta DateTimeDepa ArrivingSta DateTimeArri TravelTime
## 1 M 28 69 85 2010-02-16 12:42:32 85 2010-02-16 12:45:37 3.1
## 2 M 30 11 85 2010-02-16 12:53:29 26 2010-02-16 13:22:23 28.9
## 3 M 37 43 85 2010-02-16 13:21:46 13 2010-02-16 13:49:47 28.0
## 4 M 37 826 22 2010-02-16 14:06:40 85 2010-02-16 14:23:13 16.6
## 5 M 19 662 27 2010-02-16 15:31:15 74 2010-02-16 16:29:17 58.0
## 6 F 25 8 85 2010-02-16 16:31:53 20 2010-02-16 16:49:26 17.6
## 17919307 F 26 2760 121 2015-01-30 23:58:33 106 2015-01-31 00:22:08 23.6
## 17919308 M 22 4077 71 2015-01-30 23:58:50 190 2015-01-31 00:13:24 14.6
## 17919309 M 32 699 154 2015-01-30 23:58:55 165 2015-01-31 00:02:25 3.5
## 17919310 F 26 4044 64 2015-01-30 23:59:20 50 2015-01-31 00:05:38 6.3
## 17919311 M 26 3114 26 2015-01-30 23:59:23 127 2015-01-31 00:12:29 13.1
## 17919312 M 25 4115 165 2015-01-30 23:59:55 73 2015-01-31 00:12:39 12.7
ym;
## [1] "201501"
subset(df,format(DateTimeDepa,'%Y%m')==ym);
## Gender Age Bici DepartingSta DateTimeDepa ArrivingSta DateTimeArri TravelTime
## 17919307 F 26 2760 121 2015-01-30 23:58:33 106 2015-01-31 00:22:08 23.6
## 17919308 M 22 4077 71 2015-01-30 23:58:50 190 2015-01-31 00:13:24 14.6
## 17919309 M 32 699 154 2015-01-30 23:58:55 165 2015-01-31 00:02:25 3.5
## 17919310 F 26 4044 64 2015-01-30 23:59:20 50 2015-01-31 00:05:38 6.3
## 17919311 M 26 3114 26 2015-01-30 23:59:23 127 2015-01-31 00:12:29 13.1
## 17919312 M 25 4115 165 2015-01-30 23:59:55 73 2015-01-31 00:12:39 12.7