VELOCIDAD DE ESCAPE
Inicio > Historias > COSAS QUE NUNCA TE DIJE, EN R. (1)
COSAS QUE NUNCA TE DIJE, EN R. (1)
Cuando llevas un tiempo pegándote con esto del Data Science, que es, a decir de los entendidos, lo que yo hago aunque lleve haciéndolo desde casi el siglo pasado, entonces bajo otros nombres, terminas llegando a R.Y es lógico, pues se trata del lenguaje más útil que puedes aprender si lidias con datos. R está muy arriba, sólo en la cúspide, con el SQL a muy corta distancia, y un poco más atrás Python.
Dedicarse a esto y no conocer SQL y R es como pretender correr una maratón con grilletes en ambos pies. Mejor dedícate a otra cosa. Llegarás tarde, llegarás mal, y llegarás magullado.
Ya hace casi dos años que topé con este maravilloso, potente, fascinante (se me acaban los adjetivos) lenguaje, y no puedo hacer más que recomendarlo.
Al principio con timidez, y en la última época intensivamente, lo uso a diario, y a diario también, me sorprende con cosas nuevas.
A diario. ¿de cuántos lenguajes se puede decir lo mismo?
Como todo nuevo lenguaje, al principio te toca "pelearte" con ciertos comportamientos "extraños", que no vienen sino a ser peculiaridades del propio lenguaje,
y que pronto comienzas a reconocer, como cuando se reconoce a un viejo amigo. Sin embargo, estas pequeñas "peleas" no aparecen en los ejemplos ni en los tutoriales de la web.
Te quitan no pocas horas, pero son cosas tan elementales o al margen del objetivo central de un proyecto que se obvian o no se suelen mencionar y siempre eché de menos que alguien me hubiese echado una mano en esos momentos.
Pues aquí va mi aportación. Esta serie se denomina: "Cosas que nunca te dije. En R"
Lo habitual cuando manipulas tus datos y estás en una fase inicial, es que de todo el set de datos, en un momento dado deseas quedarte con un conjunto reducido.
Esto en R se denomina "subsetting", y es muy habitual.
Imaginemos un pequeño set de datos:
Generamos dos secuencias. Una de letras y otra de números y con ellas componemos el dataframe (objeto tabular básico de R)
df <- data.frame(letters=letters[1:5],numbers=seq(1:5))
df
letters numbers
1 a 1
2 b 2
3 c 3
4 d 4
5 e 5
Veamos los diferentes Levels de los Factores. Levels viene a ser el equivalente de UNIQUE ó DISTINCT y los Factores son aquellas columnas que almacenan valores categóricos, que pueden ser tanto numeros como cadenas de texto.
Hacemos un subsetting de las filas cuyo número sea mayor de 3
Y ahora viene lo bueno: Volvemos a mirar los Levels
¿¿CÓMO ES POSIBLE QUE SEAN LOS MISMOS ?? si hemos eliminado filas!!
Huelga decir que intentas hacer el subsetting de otras maneras, pero siempre terminas llegando a la misma conclusión: hago algo mal y no sé qué es.
Lo único que ocurre es que R conserva los Levels originales de un factor aunque hagamos subsetting.
Se soluciona habitualmente factorizando de nuevo o con droplevels
Programación | jomaweb | 53 Comentarios | Enlace
Referencias (TrackBacks)
URL de trackback de esta historia http://jomaweb.blogalia.com//trackbacks/76381
Comentarios
1 |
|
||
https://hotmailde.de/www-hotmail-de-anmeldung/ |
2 |
|
||
4 |
|
||
Myself Reva Datta I am a Model i am working as an independent escorts girl in Delhi NCR area.
|
5 |
|
||
--Bangalore Escorts--
|
6 |
|
||
At Aisha paal pune Escorts office, we have the best of magnificence, every one of our models is free pune escorts and they are too world class. You will see magnificence with class with our hot female pune Escorts.
|
7 |
|
||
8 |
|
||
You can benefit their administrations in Mumbai and furthermore adjacent spots. On the off chance that you are not in Mumbai and need to appreciate with Mumbai based call young ladies then you can simply book your arrangement. You can generally expect mind breaking administration given by call young ladies in Mumbai. They are actually quite benevolent and they realize great how to awe their customer.
|
9 |
|
||
Neha is an Mumbai Escorts. If you are looking forward to meeting the best Mumbai Call Girls for luxury services then Visit now - For more information Visit Our Website -
|
10 |
|
||
I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful
|
11 |
|
||
Welcome to Mumbaihotcollection.com, home of the finest Mumbai escorts in Mumbai area. Our Mumbai escorts are the finest Mumbai has to offer and will provide an unforgettable Mumbai Escort experience!
|
12 |
|
||
|
13 |
|
||
SBCGlobal Customer Service Phone Number
|
14 |
|
||
Mumbai Escorts
|
15 |
|
||
Epson Printer Support
|
16 |
|
||
Blinds, Shades, Shutters, Window Covering - windowfashionsdepot.com
|
17 |
|
||
Blinds, Shades, Shutters, Window Covering - windowfashionsdepot.com
|
18 |
|
||
I plan to reread your article later to think on your unique ideas. Your article is very persuasive. It’s already in my favorite’s folder so I can quickly access it. free fire jogar |
19 |
|
||
lyly |
20 |
|
||
Activate avast antivirus
|
21 |
|
||
22 |
|
||
lyly |
23 |
|
||
|
24 |
|
||
lyly |
25 |
|
||
aol reset password
|
26 |
|
||
27 |
|
||
28 |
|
||
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts. Visit this post to earn PayPal Money |
29 |
|
||
When the vehicle has been altogether washed and cleaned, it is the ideal opportunity for the intensifying procedure to start. What this implies the applier will clean the vehicle or a piece of it with a cutting compound. |
30 |
|
||
Thanks for sharing about -------. Your Content is really informative for us. We're mainly focused on generating technology less difficult for that entire world by providing QuickBooks Support problems for pcs as well as peripherals. for more information Visit Now
|
31 |
|
||
Zenius Group
|
32 |
|
||
Thanks for sharing about ...... Your blog is really informative for us..... How to Fix HP Printer is Offline to Online Issue. "We don't require any software installation to remotely help fix the issue with your printer as we provide onsite ...
|
33 |
|
||
Thank you so much for this information. After the latest Windows Update, my QB refused to open. I tried everything but I finally got my QB to work again by using your tips about the Firewall! I’m so happy to learn that I don’t have to purchase a new QB and mess around with all of that! Thank you, thank you, thank you!
|
34 |
|
||
People just dont understand that it's not all about *free speech*; it usually comes with responsibility, you know. |
35 |
|
||
Are you looking for Call Girls in Jodhpur? If so, then we are ready to serve you with the best Jodhpur call girls numbers and response as asked for. We would love to be that trusted Call Girls in Jodhpur for you, where you can easily get to find Jodhpur call girls WhatsApp number for friendship, chat and WhatsApp call. Girls in Jodhpur are ready to chat, share WhatsApp photos, girls WhatsApp number and to date online. For us, helping the Jodhpur singles to date and create long lasting friendship and relationship is the main motto and we would love to work on girls WhatsApp numbers. We are here to offer the Jodhpur single men with the chances to find Jodhpur girls numbers easily and fast. Now you can WhatsApp girls and then end up chatting with them all the time, before finalising on the actual date with the gorgeous Jodhpur WhatsApp women. So, next time you want to find Jodhpur call girls WhatsApp number, be sure to register with us and we would like to help you big time here.
|
36 |
|
||
Call Girls in Ahmedabad
|
37 |
|
||
Call Girls in Ahmedabad
|
38 |
|
||
Quicken Phone support has the right expertise to resolve these issues. When you call Quicken Customer Support Phone Number, the Expert Pro-Advisor will take the remote access of your computer and resolve the problem giving you ease and complete satisfaction. Quickbooks Support Phone Number.
|
39 |
|
||
Thank you for the information you shared, it really helped me and other Internet user to learn it. Don't forget to visit our website at
|
40 |
|
||
Nice post.Visit my site as
|
41 |
|
||
A very interesting topic that I have reviewed, I think this is one of the most important information for me. And I’m glad to read your article. Thanks for sharing!
|
42 |
|
||
I appreciate the way you have written this amazing article and I hope for more in the future as well. |
43 |
|
||
Great! I loved your site.I have bookmarked it.please visit us: |
44 |
|
||
nice
|
45 |
|
||
This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ... good luck! |
46 |
|
||
best web hosting
|
47 |
|
||
FSSAI stands for Food Safety and Standards Authority of India which is an organization that monitors and governs the food business in India. It ensures the food products undergo quality checks thereby curtailing the food adulteration and sale of sub-standard products. |
48 |
|
||
A professional Catalog of Burhanpur Escorts Service gives an excellent user-friendly Listing service at freed from cost. These girls Are certain that the high requirements are satisfied. If you want an organization for dinners, we keep a list of escorts from everywhere on the planet.
|
49 |
|
||
Escort Services in Nashik prefer to have sex by way of sixty-nine intercourse positions. Some Escort Services in Nashik also presents anal sex. The prices of getting in touch with ladies owning anal sex begin from fifteen thousand rupees.
|
50 |
|
||
We can help you in all your queries regarding ESI registration with a single click of mouse while you stay relaxed of getting insured under ESI without any complication. |
51 |
|
||
We convey you to our Call Girls in Bhopal at Substantially decreased charges because we understand how challenging it could be to spend this kind of about your exciting. So exactly what is the reason guiding such cheaper price points of our Call Girls in Bhopal? why do we offer our women at lower price points than in the market?
|
52 |
|
||
|
53 |
|
||
Hi, Please keep writing the content and posting for sure.
|