Practicing Python and R at the same time

  • Context: Python 
  • Thread starter Thread starter geologist
  • Start date Start date
  • Tags Tags
    Python Time
Click For Summary
SUMMARY

This discussion centers on the simultaneous learning of Python and R, particularly in the context of environmental consulting and data analysis. The user has completed the SoloLearn Python 3 course and DataCamp's R tutorials, emphasizing the immediate applicability of R for statistical tasks in their job. While the user acknowledges the common advice against learning both languages concurrently, they express a commitment to mastering both, with Python being favored for its automation capabilities and integration with GIS tools like ArcGIS and QGIS. The conversation highlights the growing trend of Python's popularity over R, supported by TIOBE and PYPL rankings.

PREREQUISITES
  • Basic understanding of Python 3 syntax and programming concepts
  • Familiarity with R for statistical analysis and data visualization
  • Knowledge of GIS software, specifically ArcGIS and QGIS
  • Awareness of environmental consulting practices and data analysis needs
NEXT STEPS
  • Explore Python scripting with ArcGIS using arcpy libraries
  • Deepen understanding of R for statistical modeling and data analysis
  • Research automation techniques in Python for environmental data processing
  • Investigate the integration of Python and R in data analysis workflows
USEFUL FOR

Environmental consultants, data analysts, and programmers interested in leveraging Python and R for data analysis and automation in environmental engineering contexts.

geologist
Messages
19
Reaction score
1
Hello,

I've learned some of the basics of python through the sololearn Python 3 course (I also started the first week of the MIT Intro to computer science and programming on edx.org, but I found it beyond beginner level and decided to go through the sololearn Python 3 first).

My company (environmental consulting/environmental engineering) is interested in how R can be used for some of the basic statistics we perform (groundwater/soil analytical data). Since a co-worker already knew some R (used it in graduate research), I prioritized R since at this time it was more directly applicable to my job. I've gone through the data camp Intro and intermediate R tutorials.

I know it's not generally recommended to start learning both at the same time, but I'm already familiar with the syntax of both and I intend to learn both regardless (python mainly for open source GIS, e.g. GRASS & QGIS, and ArcGIS). Would it be counter productive to practice and continue building on both at the same time (~15 hours/week).
 
Technology news on Phys.org
It sounds like R is of immediate benefit to your company, so that part is answered. Python is a very powerful language that will allow you to automate many processes that would otherwise be very tedious. Its benefit on your job may not be immediate, but you may eventually be able to automate things at work that will greatly increase your productivity. If you enjoy scripting processes, you may want to learn Python anyway on your own time.

PS. I tend to believe that Python is a little over-sold and prefer Perl for scripting processes. But there are very good programmers (certainly better than me) who love Python.
 
Last edited:
Well obviously R is more important to you, however R is not having a large dynamic [compared to python] as can be seen in the table here: https://usersnap.com/blog/programming-languages-2018/
where python appears with a very strong increasing trend (according to PYPL ranking). The TIOBE ranking also shows an increasing trend for Python: https://www.tiobe.com/tiobe-index/ (compared to R), ranking 4th from 5th it was last year, overpassing C#. Python had an increase of about ~2.4% while R had a decrease of ~0.3%
Since we try to compare R with python, I guess your main target is big data analysis. Python has to offer extremely useful tools both for the data analysis and visualization. So in general I would definitely recommend python to R, given that this won't be bad for your current work [this should always be taken into account]. Afterall there is work for C++ programmers too :biggrin: not that many, but they exist. But I won't be too hard on C++, it has shown some great improvements in terms of usability since C++11.
 
  • Like
Likes   Reactions: geologist
FactChecker said:
It sounds like R is of immediate benefit to your company, so that part is answered. Python is a very powerful language that will allow you to automate many processes that would otherwise be very tedious. Its benefit on your job may not be immediate, but you may eventually be able to automate things at work that will greatly increase your productivity. If you enjoy scripting processes, you may want to learn Python anyway on your own time.

PS. I tend to believe that Python is a little over-sold and prefer Perl for scripting processes. But there are very good programmers (certainly better than me) who love Python.

Part of the reason for learning python is because GIS software (namely ArcGIS, QGIS, and GRASS GIS) utilize python for scripting. I'm focusing on R and python this year, but they won't necessarily be the only languages I learn.
 
Given the fact you work for a "dirt burning" company :wink: that potentially uses ArcGIS I'd start right there with python and the arcpy libs. With the ArcGIS support and examples available for python scripting, geospatial data analysis and visualization, in my opinion your path to developing competence in scripting to support your things like kriging and plume modeling would be a much easier learning curve with python utilizing the ArcGIS toolbox. Take up R later once you've mastered python.

Plus that other guy uses R, let him to the R and you can do the python. You will program loops around him with python and arcpy.
 
  • Like
Likes   Reactions: geologist
Kyle Gonterwitz said:
Given the fact you work for a "dirt burning" company :wink: that potentially uses ArcGIS I'd start right there with python and the arcpy libs. With the ArcGIS support and examples available for python scripting, geospatial data analysis and visualization, in my opinion your path to developing competence in scripting to support your things like kriging and plume modeling would be a much easier learning curve with python utilizing the ArcGIS toolbox. Take up R later once you've mastered python.

Plus that other guy uses R, let him to the R and you can do the python. You will program loops around him with python and arcpy.

My company deals with mainly with environmental contamination assessments (https://en.wikipedia.org/wiki/Environmental_consulting), I assume "dirt burning" implies petroleum?. I was actually learning python first, I only start learning R when I saw my co-worker using it for something, which in hindsight I probably should have got good at python first. We haven't had as heavy a use of GIS as would be expected for an environmental company, but that probably will change.
 
geologist said:
My company deals with mainly with environmental contamination assessments (https://en.wikipedia.org/wiki/Environmental_consulting), I assume "dirt burning" implies petroleum?. I was actually learning python first, I only start learning R when I saw my co-worker using it for something, which in hindsight I probably should have got good at python first. We haven't had as heavy a use of GIS as would be expected for an environmental company, but that probably will change.
When you need to work with others at a company, you may have to work in the language that they have done a lot with. There may be a great many R programs there. If so, you should be able to deal with it. R is very well respected and a well established statistical language.
 

Similar threads

Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
9K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
15
Views
3K
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K