Recently Published

The Character Class
In this entry, I explored the basics of the character class in R, focusing on coercion and type verification. I began by defining a character string, "Avery analyzes data efficiently and effectively", and confirmed its type using the class() and is.character() functions. These checks ensured that the variable was correctly recognized as a character string. Next, I experimented with coercion. I converted a numeric string "42" into a numeric value using as.numeric(), which successfully returned 42. However, when I attempted to coerce the word "analyzes" into a numeric value, R returned NA and issued a warning about coercion. This exercise highlighted the importance of understanding data types and the limitations of coercion in R. Through these steps, I reinforced my understanding of handling character data and the significance of proper type management in R. This foundational knowledge is crucial for ensuring accurate data transformations and avoiding errors in data analysis workflows.
Document
t-test lab
Syllabus
Project_3_Data_607
HTML
PS2
Date-time classes (POSIXct and POSIXlt)
I worked with date-time objects in R using the POSIXct class. I formatted and printed various components of a date-time object, such as seconds, minutes, hours, and time zone details. I performed date-time arithmetic by adding seconds and combining hours, minutes, and seconds using both direct calculations and as.difftime. Additionally, I calculated the difference between two date-time objects using difftime(). Lastly, I parsed strings into date-time objects, handling different time formats and time zones effectively. This exercise focused on practical manipulation and formatting of date-time data for precise analysis.
Project_3
Motor Trend
Week 9 Assignment Data607
Tarea 10